From 5582b337e203c8cda6ab28c07ffbd45ba69eeb88 Mon Sep 17 00:00:00 2001 From: DreamPiggy Date: Sun, 27 Oct 2019 02:51:19 +0800 Subject: [PATCH] Fix the issue that on watchOS, AnimatedImage animating control does not take effect issue --- SDWebImageSwiftUI/Classes/ObjC/SDAnimatedImageInterface.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SDWebImageSwiftUI/Classes/ObjC/SDAnimatedImageInterface.m b/SDWebImageSwiftUI/Classes/ObjC/SDAnimatedImageInterface.m index 33e9ce63..134333ed 100644 --- a/SDWebImageSwiftUI/Classes/ObjC/SDAnimatedImageInterface.m +++ b/SDWebImageSwiftUI/Classes/ObjC/SDAnimatedImageInterface.m @@ -236,7 +236,7 @@ - (void)updateShouldAnimate { id view = [self _interfaceView]; BOOL isVisible = view.window && view.superview && ![view isHidden] && view.alpha > 0.0; - self.currentStatus.shouldAnimate = self.animatedImage && self.totalFrameCount > 1 && self.isAnimatedFormat && isVisible; + self.currentStatus.shouldAnimate = self.isAnimating && self.animatedImage && self.isAnimatedFormat && self.totalFrameCount > 1 && isVisible; } - (void)startAnimating {