Structure

NSTouchPhase

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

Symbols

Constants

static var began: NSTouchPhase

A finger touched the device. Or, a resting touch transitioned to an active touch and resting touches are not wanted by the view hierarchy.

static var moved: NSTouchPhase

A finger moved on the device.

static var stationary: NSTouchPhase

A finger is touching the device, but hasn't moved since the previous event.

static var ended: NSTouchPhase

A finger was lifted from the screen. Or, an active touch transitioned to a resting touch and resting touches are not wanted by the view hierarchy.

static var cancelled: NSTouchPhase

The system cancelled tracking for the touch, as when (for example) the window associated with the touch resigns key or is deactivated.

static var touching: NSTouchPhase

Matches the began, moved, or stationary phases of a touch.

static var any: NSTouchPhase

Matches any phase of a touch.

Relationships

Conforms To