States and Animations

PHOTO EMBED

Wed Sep 08 2021 08:56:44 GMT+0000 (Coordinated Universal Time)

Saved by @GameFi ##swift

@State var show = true

.onTapGesture {
    self.show.toggle()
}
content_copyCOPY

Transitions are like Magic Move in Keynote. You only need to set the states and SwiftUI will figure out for you the transition between the two states.

https://designcode.io/swiftui-course