Generic Instance Method


Combines two gestures exclusively to create a new gesture where only one gesture succeeds, giving precedence to the first gesture.


func exclusively<Other>(before other: Other) -> ExclusiveGesture<TapGesture, Other> where Other : Gesture



A gesture you combine with your gesture, to create a new, combined gesture.

Return Value

A gesture that's the result of combining two gestures where only one of them can succeed. SwiftUI gives precedence to the first gesture.

See Also

Composing Gestures

func simultaneously<Other>(with: Other) -> SimultaneousGesture<TapGesture, Other>

Combines a gesture with another gesture to create a new gesture that recognizes both gestures at the same time.

func sequenced<Other>(before: Other) -> SequenceGesture<TapGesture, Other>

Sequences a gesture with another one to create a new gesture, which results in the second gesture only receiving events after the first gesture succeeds.