File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
SDWebImageSwiftUI/Classes Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,6 @@ public final class AnimatedImageCoordinator: NSObject {
36
36
public struct AnimatedImage : PlatformViewRepresentable {
37
37
// Options
38
38
var url : URL ?
39
- @State var image : PlatformImage ?
40
39
var webOptions : SDWebImageOptions = [ ]
41
40
var webContext : [ SDWebImageContextOption : Any ] ? = nil
42
41
@@ -74,6 +73,9 @@ public struct AnimatedImage : PlatformViewRepresentable {
74
73
var viewUpdateBlock : ( ( PlatformView , Context ) -> Void ) ?
75
74
static var viewDestroyBlock : ( ( PlatformView , Coordinator ) -> Void ) ?
76
75
76
+ /// Current loaded image, may be `SDAnimatedImage` type
77
+ @State public var image : PlatformImage ?
78
+
77
79
/// A Binding to control the animation. You can bind external logic to control the animation status.
78
80
/// True to start animation, false to stop animation.
79
81
@Binding public var isAnimating : Bool
You can’t perform that action at this time.
0 commit comments