---
title: primary
framework: uikit
role: symbol
role_heading: Type Property
path: uikit/uievent/buttonmask-swift.struct/primary
---

# primary

A constant that represents the primary button on the input device.

## Declaration

```swift
static var primary: UIEvent.ButtonMask { get }
```

## See Also

### Accessing button masks

- [secondary](uikit/uievent/buttonmask-swift.struct/secondary.md)
