diff --git a/SDWebImageSwiftUI/Classes/AnimatedImage.swift b/SDWebImageSwiftUI/Classes/AnimatedImage.swift index 00cbc61e..c5d8d847 100644 --- a/SDWebImageSwiftUI/Classes/AnimatedImage.swift +++ b/SDWebImageSwiftUI/Classes/AnimatedImage.swift @@ -256,6 +256,7 @@ public struct AnimatedImage : PlatformViewRepresentable { } static func dismantleView(_ view: AnimatedImageViewWrapper, coordinator: ()) { + view.wrapped.sd_cancelCurrentImageLoad() #if os(macOS) view.wrapped.animates = false #else