Instance Method

touches(for:)

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

Declaration

func touches(for window: UIWindow) -> Set<UITouch>?

Parameters

window

The UIWindow object in which the touches originally occurred.

Return Value

A set of UITouch objects representing the touches that belong to the specified window.

See Also

Related Symbols

var allTouches: Set<UITouch>?

Returns all touches associated with the event.

func touches(for: UIView)

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