---
title: phase
framework: swiftui
role: symbol
role_heading: Instance Property
path: swiftui/keypress/phase
---

# phase

The phase of the key-press event (.down, .repeat, or .up).

## Declaration

```swift
let phase: KeyPress.Phases
```

## See Also

### Getting the phase of the keypress

- [KeyPress.Phases](swiftui/keypress/phases.md)
