Generic Instance Method

sequenced(before:)

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.

Declaration

func sequenced<Other>(before other: Other) -> SequenceGesture<DragGesture, Other> where Other : Gesture

Parameters

other

A gesture you want to combine with another gesture to create a new, sequenced gesture.

Return Value

A gesture that's a sequence of two gestures.

See Also

Composing Gestures

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

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

func exclusively<Other>(before: Other) -> ExclusiveGesture<DragGesture, Other>

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