Instance Method

touchesBegan(_:with:)

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

Declaration

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

Parameters

touches

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

event

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

Discussion

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