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.