Skip to content

Commit

Permalink
fix(ios): fix image tint color bug
Browse files Browse the repository at this point in the history
  • Loading branch information
ozonelmy authored and zoomchan-cxj committed Mar 29, 2022
1 parent 8e2038c commit 3884b0d
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions ios/sdk/component/image/HippyAnimatedImageView.m
Original file line number Diff line number Diff line change
Expand Up @@ -402,8 +402,13 @@ + (NSString *)defaultRunLoopMode {
#pragma mark Providing the Layer's Content

- (void)displayLayer:(CALayer *)layer {
UIImage *image = self.image;
layer.contents = (__bridge id)image.CGImage;
if (self.animatedImage) {
UIImage *image = self.image;
layer.contents = (__bridge id)image.CGImage;
}
else {
[super displayLayer:layer];
}
}

@end

0 comments on commit 3884b0d

Please sign in to comment.