Update the example on watchOS, to use fade transition
This commit is contained in:
parent
85a648fb43
commit
cc2981732b
|
@ -105,6 +105,8 @@ struct ContentView: View {
|
|||
#else
|
||||
WebImage(url: URL(string:url))
|
||||
.resizable()
|
||||
.animation(.easeInOut(duration: 0.5))
|
||||
.transition(.fade)
|
||||
.scaledToFit()
|
||||
.frame(width: CGFloat(100), height: CGFloat(100), alignment: .center)
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue