A container that encapsulates the Core Data stack in your app and mirrors select persistent stores to a CloudKit private database.
- iOS 13.0+Beta
- macOS 10.15+Beta
- UIKit for Mac 13.0+Beta
- tvOS 13.0+Beta
- watchOS 6.0+Beta
- Core Data
NSPersistent contains a single store description, assigned to the first CloudKit container identifier in an application’s entitlements. Use
NSPersistent to customize this behavior or create additional store descriptions backed by different containers.
For more information about setting up multiple stores see Setting Up Core Data with CloudKit.