<!--
{
  "availability" : [
    "macOS: 10.7.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSTouch/Phase-swift.struct",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:@E@NSTouchPhase"
  },
  "title" : "NSTouch.Phase"
}
-->

# NSTouch.Phase

The possible phases of a touch.

```
struct Phase
```

## Overview

These constants are used by [`phase`](/documentation/AppKit/NSTouch/phase-swift.property).

## Topics

### Creating a Touch Phase

[`init(rawValue:)`](/documentation/AppKit/NSTouch/Phase-swift.struct/init(rawValue:))

Creates a new touch phase from the given raw value.

### Constants

[`began`](/documentation/AppKit/NSTouch/Phase-swift.struct/began)

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

[`moved`](/documentation/AppKit/NSTouch/Phase-swift.struct/moved)

A finger moved on the device.

[`stationary`](/documentation/AppKit/NSTouch/Phase-swift.struct/stationary)

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

[`ended`](/documentation/AppKit/NSTouch/Phase-swift.struct/ended)

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.

[`cancelled`](/documentation/AppKit/NSTouch/Phase-swift.struct/cancelled)

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

[`touching`](/documentation/AppKit/NSTouch/Phase-swift.struct/touching)

Matches the [`began`](/documentation/AppKit/NSTouch/Phase-swift.struct/began), [`moved`](/documentation/AppKit/NSTouch/Phase-swift.struct/moved), or [`stationary`](/documentation/AppKit/NSTouch/Phase-swift.struct/stationary) phases of a touch.

[`any`](/documentation/AppKit/NSTouch/Phase-swift.struct/any)

Matches any phase of a touch.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)