Instance Property


Use this property to track changes to a particular touch during the touch's life.


var identity: NSCopying & NSObjectProtocol { get }


While touch identities may be re-used, they are unique during the life of the touch, even when multiple devices are present.

Identity objects implement the NSCopying protocol so that they may be used as keys in an NSDictionary. Use isEqual: to compare two touch identities.

See Also

Properties of this touch

var phase: NSTouch.Phase

The current phase of the touch.

struct NSTouch.Phase

The possible phases of a touch. These constants are used by phase.

var normalizedPosition: NSPoint

The normalized position of the touch.

var isResting: Bool

Returns whether the touch is a resting touch.