File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
SDWebImageSwiftUI/Classes Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -119,15 +119,15 @@ public struct AnimatedImage : PlatformViewRepresentable {
119
119
/// Create an animated image with data and scale.
120
120
/// - Parameter data: The image data
121
121
/// - Parameter scale: The scale factor
122
- public init ( data: Data , scale: CGFloat = 0 ) {
122
+ public init ( data: Data , scale: CGFloat = 1 ) {
123
123
self . init ( data: data, scale: scale, isAnimating: . constant( true ) )
124
124
}
125
125
126
126
/// Create an animated image with data and scale, including animation control binding.
127
127
/// - Parameter data: The image data
128
128
/// - Parameter scale: The scale factor
129
129
/// - Parameter isAnimating: The binding for animation control
130
- public init ( data: Data , scale: CGFloat = 0 , isAnimating: Binding < Bool > ) {
130
+ public init ( data: Data , scale: CGFloat = 1 , isAnimating: Binding < Bool > ) {
131
131
self . _isAnimating = isAnimating
132
132
self . imageModel. data = data
133
133
self . imageModel. scale = scale
You can’t perform that action at this time.
0 commit comments