Skip to content

Commit dfb9ab4

Browse files
committed
Fix the issue that stopAnimating does not stop :)
1 parent ab7a54c commit dfb9ab4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

SDWebImageSwiftUI/Classes/SDAnimatedImageInterface.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ - (void)startAnimatingWithImagesInRange:(NSRange)imageRange duration:(NSTimeInte
212212

213213
- (void)stopAnimating {
214214
if (self.animatedImage) {
215-
self.currentStatus.shouldAnimate = YES;
215+
self.currentStatus.shouldAnimate = NO;
216216
} else if (_image.images.count > 0) {
217217
[super stopAnimating];
218218
}

0 commit comments

Comments
 (0)