Skip to content

Commit

Permalink
fix(ios): fix image animation stop issue after setting tintColor
Browse files Browse the repository at this point in the history
  • Loading branch information
ruifanyuan authored and hippy-actions[bot] committed Nov 8, 2023
1 parent 3c1ef52 commit a84c3e0
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions renderer/native/ios/renderer/component/image/HippyImageView.m
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,15 @@ - (void)dealloc {
[[NSNotificationCenter defaultCenter] removeObserver:self];
}

- (void)setTintColor:(UIColor *)tintColor{
[super setTintColor:tintColor];
if(_animatedImageOperation){
_needsReloadImage = YES;
}else{
_needsUpdateImage = YES;
}
}

- (void)didMoveToWindow {
[super didMoveToWindow];
if (!self.window) {
Expand Down

0 comments on commit a84c3e0

Please sign in to comment.