File tree Expand file tree Collapse file tree 2 files changed +3
-6
lines changed
Example/SDWebImageSwiftUIDemo Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -173,8 +173,7 @@ struct ContentView: View {
173173 WebImage ( url: URL ( string: url) , isAnimating: self . $animated)
174174 . resizable ( )
175175 . indicator ( . activity)
176- . animation ( . easeInOut( duration: 0.5 ) )
177- . transition ( . fade)
176+ . transition ( . fade( duration: 0.5 ) )
178177 . scaledToFit ( )
179178 . frame ( width: CGFloat ( 100 ) , height: CGFloat ( 100 ) , alignment: . center)
180179 #endif
@@ -187,8 +186,7 @@ struct ContentView: View {
187186 }
188187 */
189188 . indicator ( . activity)
190- . animation ( . easeInOut( duration: 0.5 ) )
191- . transition ( . fade)
189+ . transition ( . fade( duration: 0.5 ) )
192190 . scaledToFit ( )
193191 . frame ( width: CGFloat ( 100 ) , height: CGFloat ( 100 ) , alignment: . center)
194192 }
Original file line number Diff line number Diff line change @@ -122,8 +122,7 @@ var body: some View {
122122 Rectangle ().foregroundColor (.gray )
123123 }
124124 .indicator (.activity ) // Activity Indicator
125- .animation (.easeInOut (duration : 0.5 )) // Animation Duration
126- .transition (.fade ) // Fade Transition
125+ .transition (.fade (duration : 0.5 )) // Fade Transition with duration
127126 .scaledToFit ()
128127 .frame (width : 300 , height : 300 , alignment : .center )
129128}
You can’t perform that action at this time.
0 commit comments