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
|
#else
|
||||||
WebImage(url: URL(string:url))
|
WebImage(url: URL(string:url))
|
||||||
.resizable()
|
.resizable()
|
||||||
|
.animation(.easeInOut(duration: 0.5))
|
||||||
|
.transition(.fade)
|
||||||
.scaledToFit()
|
.scaledToFit()
|
||||||
.frame(width: CGFloat(100), height: CGFloat(100), alignment: .center)
|
.frame(width: CGFloat(100), height: CGFloat(100), alignment: .center)
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue