Update the example on watchOS, to use fade transition

This commit is contained in:
DreamPiggy 2019-10-27 20:19:52 +08:00
parent 85a648fb43
commit cc2981732b
1 changed files with 2 additions and 0 deletions

View File

@ -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