<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.15.0 -",
    "tvOS: 13.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 6.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreData",
  "identifier" : "/documentation/CoreData/NSPersistentCloudKitContainerOptions",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "Core Data"
    ],
    "preciseIdentifier" : "c:objc(cs)NSPersistentCloudKitContainerOptions"
  },
  "title" : "NSPersistentCloudKitContainerOptions"
}
-->

# NSPersistentCloudKitContainerOptions

An object that customizes how a store description aligns with a CloudKit database.

```
class NSPersistentCloudKitContainerOptions
```

## Overview

Use [`NSPersistentCloudKitContainerOptions`](/documentation/CoreData/NSPersistentCloudKitContainerOptions) to customize the behavior of an [`NSPersistentCloudKitContainer`](/documentation/CoreData/NSPersistentCloudKitContainer) or to create additional store descriptions that sync to other containers.

For more information about setting up multiple stores, see [Setting Up Core Data with CloudKit](/documentation/CoreData/setting-up-core-data-with-cloudkit).

## Topics

### Creating Container Options

[`init(containerIdentifier:)`](/documentation/CoreData/NSPersistentCloudKitContainerOptions/init(containerIdentifier:))

Initializes container options using the given CloudKit container identifier.

[`containerIdentifier`](/documentation/CoreData/NSPersistentCloudKitContainerOptions/containerIdentifier)

The identifier of the CloudKit container associated with a given store description.

[`databaseScope`](/documentation/CoreData/NSPersistentCloudKitContainerOptions/databaseScope-4c72t)

The database scope — public, private, or shared — to use for a specified store in a persistent CloudKit container.

[`databaseScope`](/documentation/CoreData/NSPersistentCloudKitContainerOptions/databaseScope-2784h)

The database scope — public, private, or shared — to use for a specified store in a persistent CloudKit container.



---

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)