NSPersistentCloudKitContainer
A container that encapsulates the Core Data stack in your app, and mirrors select persistent stores to a CloudKit private database.
Declaration
class NSPersistentCloudKitContainerMentioned in
Overview
NSPersistentCloudKitContainer is a subclass of NSPersistentContainer capable of managing both CloudKit-backed and noncloud stores.
By default, NSPersistentCloudKitContainer contains a single store description, which Core Data assigns to the first CloudKit container identifier in an app’s entitlements. Use NSPersistentCloudKitContainerOptions to customize this behavior or create additional store descriptions with backing by different containers.
For more information about setting up multiple stores, see Setting Up Core Data with CloudKit.
Topics
Checking Permissions
canUpdateRecord(forManagedObjectWith:)canDeleteRecord(forManagedObjectWith:)canModifyManagedObjects(in:)