<!--
{
  "availability" : [
    "iOS: 8.0.0 -",
    "iPadOS: 8.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.10.0 -",
    "tvOS: -",
    "visionOS: 1.0.0 -",
    "watchOS: 3.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CloudKit",
  "identifier" : "/documentation/CloudKit/CKRecordZone/init(zoneID:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "CloudKit"
    ],
    "preciseIdentifier" : "c:objc(cs)CKRecordZone(im)initWithZoneID:"
  },
  "title" : "init(zoneID:)"
}
-->

# init(zoneID:)

Creates a record zone object with the specified zone ID.

```
init(zoneID: CKRecordZone.ID)
```

## Parameters

`zoneID`

The ID for the new zone. This parameter must not be `nil`.

## Return Value

The custom record zone.

## Discussion

Use this method when you want to create a new record zone from the information in a zone ID. After creating the zone, save it to the server using a [`CKModifyRecordZonesOperation`](/documentation/CloudKit/CKModifyRecordZonesOperation) object or the [`save(_:completionHandler:)`](/documentation/CloudKit/CKDatabase/save(_:completionHandler:)-32ffr) method of [`CKDatabase`](/documentation/CloudKit/CKDatabase).

Don’t use this method to create a [`CKRecordZone`](/documentation/CloudKit/CKRecordZone) object that corresponds to a zone that already exists in the database. If the zone exists, fetch it using a [`CKFetchRecordZonesOperation`](/documentation/CloudKit/CKFetchRecordZonesOperation) object or the [`fetch(withRecordZoneID:completionHandler:)`](/documentation/CloudKit/CKDatabase/fetch(withRecordZoneID:completionHandler:)) method of [`CKDatabase`](/documentation/CloudKit/CKDatabase).

---

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)