Instance Method

touchesEnded(_:with:)

Tells the gesture recognizer when one or more fingers lift from the associated view.

Declaration

@objc override dynamic func touchesEnded(_ touches: Set<UITouch>, with event: UIEvent)

Parameters

touches

A set of UITouch instances in event that represent the touches in the UITouch.Phase.ended phase.

event

A UIEvent instance representing the event to which the touches belong.

Discussion

For more information, see touchesEnded(_:with:).

See Also

Recognizing Touches

func touchesBegan(Set<UITouch>, with: UIEvent)

Tells the recognizer that the user has touched the entity with one or more fingers.

func touchesMoved(Set<UITouch>, with: UIEvent)

Tells the gesture recognizer when one or more fingers move in the associated view.

func touchesCancelled(Set<UITouch>, with: UIEvent)

Tells the gesture recognizer that a system event (such as an incoming phone call) cancels a touch event.