Instance Property

allTouches

Returns all touches associated with the event.

Declaration

var allTouches: Set<UITouch>? { get }

Return Value

A set of UITouch objects representing all touches associated with the event.

Discussion

If the touches of the event originate in different views and windows, the UITouch objects obtained from this method will be associated with different responder objects.

See Also

Getting the Touches for an Event

func touches(for: UIView)

Returns the touch objects from the event that belong to the specified given view.

func touches(for: UIWindow)

Returns the touch objects from the event that belong to the specified window.

func coalescedTouches(for: UITouch)

Returns all of the touches associated with the specified main touch.

func predictedTouches(for: UITouch)

Returns an array of touches that are predicted to occur for the specified touch.