Instance Method

onEnded(_:)

Adds an action to perform when the gesture ends.

Declaration

func onEnded(_ action: @escaping (Self.Value) -> Void) -> _EndedGesture<Self>

Parameters

action

The action to perform when this gesture ends. The action closure’s parameter contains the final value of the gesture.

Return Value

A gesture that triggers action when the gesture ends.