Skip to content

Commit

Permalink
Fix the issue that on watchOS, AnimatedImage animating control does n…
Browse files Browse the repository at this point in the history
…ot take effect issue
  • Loading branch information
dreampiggy committed Oct 26, 2019
1 parent 281e542 commit 5582b33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SDWebImageSwiftUI/Classes/ObjC/SDAnimatedImageInterface.m
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ - (void)updateShouldAnimate
{
id<UIViewProtocol> 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 {
Expand Down

0 comments on commit 5582b33

Please sign in to comment.