The Pan Toggle Gesture patch recognizes a pan gesture, and toggles between two states when the gesture finishes. Upon recognizing that a pan gesture has occurred, it will cancel all other interactions on the view or its subviews.
Pan Gestures are commonly used to recognize panning actions on top of views that already have interactions. (e.g. Recognizing when the user is trying to pan a tappable button.)
State A: Position
The position to use for the first state.
State B: Position
The position to use for the second state.
Tap To Toggle
A boolean that indicates whether the patch should toggle between states when the view is tapped.
State A
An input that flips the gesture to the first state.
State B
An input that flips the gesture to the second state.
Gesture
The gesture connection port used to link the gesture to a view.
Position
The total amount of X/Y translation that has occurred. This will instantly snap to state A or B depending on the position and velocity when the gesture finishes.
A/B
A continuous number value between 0-1 that represents whether the patch is in state A or B.
Active
A boolean value that represents whether the patch has recognized a pan gesture.