---
title: zoneID
framework: cloudkit
role: symbol
role_heading: Instance Property
path: cloudkit/ckrecordzone/zoneid
---

# zoneID

The unique ID of the zone.

## Declaration

```swift
@NSCopying var zoneID: CKRecordZone.ID { get }
```

## Discussion

Discussion The zone ID contains the name of the zone and the name of the user who owns the zone. Use this property to access both of those values.

## See Also

### Getting the Zone Attributes

- [capabilities](cloudkit/ckrecordzone/capabilities-swift.property.md)
- [CKRecordZone.Capabilities](cloudkit/ckrecordzone/capabilities-swift.struct.md)
