From a84c3e08bf12d155409974bd95af93642c4fc9d7 Mon Sep 17 00:00:00 2001 From: ruifanyuan Date: Wed, 8 Nov 2023 12:15:20 +0800 Subject: [PATCH] fix(ios): fix image animation stop issue after setting tintColor --- .../native/ios/renderer/component/image/HippyImageView.m | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/renderer/native/ios/renderer/component/image/HippyImageView.m b/renderer/native/ios/renderer/component/image/HippyImageView.m index 94d03b210f6..8638dfda40d 100644 --- a/renderer/native/ios/renderer/component/image/HippyImageView.m +++ b/renderer/native/ios/renderer/component/image/HippyImageView.m @@ -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) {