---
title: major
framework: corelocation
role: symbol
role_heading: Instance Property
path: corelocation/clbeaconidentityconstraint/major
---

# major

The constraint’s value for the major identity characteristic.

## Declaration

```swift
var major: UInt16? { get }
```

## Discussion

Discussion The major characteristic is optional. If it’s present, a beacon’s major value needs to match the constraint’s major value to represent a match. If the constraint has no major value, it acts as a wildcard and matches any major value. You can specify the major value when initializing the constraint.

## See Also

### Getting the beacon identity

- [minor](corelocation/clbeaconidentityconstraint/minor.md)
