Contents

exclusively(before:)

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

Declaration

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

Parameters

  • other:

    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