A container that encapsulates the Core Data stack in your app and mirrors select persistent stores to a CloudKit private database.
- iOS 13.0+
- macOS 10.15+
- Mac Catalyst 13.0+
- tvOS 13.0+
- watchOS 6.0+
- 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.