Skip to content

Commit

Permalink
Fix NSInternalInconsistencyException error, apply patch
Browse files Browse the repository at this point in the history
  • Loading branch information
leodev9 committed Mar 8, 2024
1 parent 9ab80fc commit aab4f15
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ios/FastImage/FFFastImageView.m
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,11 @@ - (UIImage*) makeImage: (UIImage*)image withTint: (UIColor*)color {
[newImage drawInRect: CGRectMake(0, 0, image.size.width, newImage.size.height)];
newImage = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();
UIGraphicsImageRenderer *renderer = [[UIGraphicsImageRenderer alloc] initWithSize:image.size];
newImage = [renderer imageWithActions:^(UIGraphicsImageRendererContext * _Nonnull rendererContext) {
[color setFill];
[newImage drawInRect:CGRectMake(0, 0, image.size.width, newImage.size.height)];
}];
return newImage;
}

Expand Down

0 comments on commit aab4f15

Please sign in to comment.