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 3ae64cf commit 996f65eCopy full SHA for 996f65e
SDWebImageSwiftUI/Classes/AnimatedImage.swift
@@ -122,7 +122,7 @@ public struct AnimatedImage : PlatformViewRepresentable {
122
#else
123
let image = SDAnimatedImage(named: name, in: bundle, compatibleWith: nil)
124
#endif
125
- self.image = image
+ _image = .init(wrappedValue: image)
126
}
127
128
/// Create an animated image with data and scale.
@@ -139,7 +139,7 @@ public struct AnimatedImage : PlatformViewRepresentable {
139
public init(data: Data, scale: CGFloat = 0, isAnimating: Binding<Bool>) {
140
self._isAnimating = isAnimating
141
let image = SDAnimatedImage(data: data, scale: scale)
142
143
144
145
#if os(macOS)
0 commit comments