🚥GestureState
SwiftUI ⟩ Gestures ⟩ GestureState
@GestureState will reset to the original value when the gesture ends.
Since @GestureState property will reset itself, we need another @State property to save the final state.
long press + drag - use custom enum for its gesture state.
SwiftUI ⟩ Gestures ⟩ GestureState (struct)
is property wrapper.
used by Long Press, Drag.
Last updated
Was this helpful?