onEnded(_:)
Adds an action to perform when the gesture ends.
Declaration
nonisolated func onEnded(_ action: @escaping (Self.Value) -> Void) -> _EndedGesture<Self>Parameters
- action:
The action to perform when this gesture ends. The
actionclosure’s parameter contains the final value of the gesture.
Mentioned in
Return Value
A gesture that triggers action when the gesture ends.