Skip to content

Commit 17af6d5

Browse files
committed
Fix the issue that on watchOS, AnimatedImage animating control does not take effect issue
1 parent c63ea61 commit 17af6d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

SDWebImageSwiftUI/Classes/ObjC/SDAnimatedImageInterface.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ - (void)updateShouldAnimate
236236
{
237237
id<UIViewProtocol> view = [self _interfaceView];
238238
BOOL isVisible = view.window && view.superview && ![view isHidden] && view.alpha > 0.0;
239-
self.currentStatus.shouldAnimate = self.animatedImage && self.totalFrameCount > 1 && self.isAnimatedFormat && isVisible;
239+
self.currentStatus.shouldAnimate = self.isAnimating && self.animatedImage && self.isAnimatedFormat && self.totalFrameCount > 1 && isVisible;
240240
}
241241

242242
- (void)startAnimating {

0 commit comments

Comments
 (0)