Instance Method

onEnded(_:)

Adds an action to perform when the gesture ends.

Declaration

func onEnded(_ action: @escaping (()) -> Void) -> _EndedGesture<TapGesture>

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.

See Also

Performing the Gesture

typealias TapGesture.Value

A type that describes the value of a tap gesture.