Skip to content

Commit fd5de18

Browse files
Removed circular clipping
1 parent b1bc363 commit fd5de18

2 files changed

Lines changed: 0 additions & 14 deletions

File tree

UIImageView+Letters/UIImageView+Letters.m

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -107,13 +107,6 @@ - (UIImage *)imageSnapshotFromText:(NSString *)text backgroundColor:(UIColor *)c
107107

108108
CGContextRef context = UIGraphicsGetCurrentContext();
109109

110-
//
111-
// Clip context to a circle
112-
//
113-
CGPathRef path = CGPathCreateWithEllipseInRect(self.bounds, NULL);
114-
CGContextAddPath(context, path);
115-
CGContextClip(context);
116-
117110
//
118111
// Fill background of context
119112
//

UIImageViewLettersSample/UIImageViewLettersSample/UIImageView+Letters/UIImageView+Letters.m

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -107,13 +107,6 @@ - (UIImage *)imageSnapshotFromText:(NSString *)text backgroundColor:(UIColor *)c
107107

108108
CGContextRef context = UIGraphicsGetCurrentContext();
109109

110-
//
111-
// Clip context to a circle
112-
//
113-
CGPathRef path = CGPathCreateWithEllipseInRect(self.bounds, NULL);
114-
CGContextAddPath(context, path);
115-
CGContextClip(context);
116-
117110
//
118111
// Fill background of context
119112
//

0 commit comments

Comments
 (0)