We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2587161 commit b62cbdfCopy full SHA for b62cbdf
SDWebImageSwiftUI/Classes/AnimatedImage.swift
@@ -129,13 +129,20 @@ public struct AnimatedImage : PlatformViewRepresentable {
129
}
130
131
132
+
133
+ #if os(macOS)
134
+ if self.isAnimating != view.wrapped.animates {
135
+ view.wrapped.animates = self.isAnimating
136
+ }
137
+ #else
138
if self.isAnimating != view.wrapped.isAnimating {
139
if self.isAnimating {
140
view.wrapped.startAnimating()
141
} else {
142
view.wrapped.stopAnimating()
143
144
145
+ #endif
146
147
configureView(view, context: context)
148
layoutView(view, context: context)
0 commit comments