Instance Property

window

The window in which the touch initially occurred.

Declaration

var window: UIWindow? { get }

Discussion

The value of the property is the window in which the touch originally occurred. This window might not be the same window that currently contains the touch.

See Also

Getting the Location of a Touch

func location(in: UIView?)

Returns the current location of the receiver in the coordinate system of the given view.

func previousLocation(in: UIView?)

Returns the previous location of the receiver in the coordinate system of the given view.

var view: UIView?

The view to which touches are being delivered, if any.

var majorRadius: CGFloat

The radius (in points) of the touch.

var majorRadiusTolerance: CGFloat

The tolerance (in points) of the touch’s radius.

func preciseLocation(in: UIView?)

Returns a precise location for the touch, when available.

func precisePreviousLocation(in: UIView?)

Returns a precise previous location for the touch, when available.