NSPersistentCloudKitContainer
now supports sharing via CloudKit Record Zone Sharing.
This new capability allows applications to easily build features that enable sharing of Core Data managed objects with multiple iCloud users.
We've updated our sample application and documentation to demonstrate how these new capabilities work.
At a high level NSPersistentCloudKitContainer
now supports:
- New API for binding directly to call sites commonly used for sharing in your AppDelegate, UICloudSharingController, or your user interface code.
- Assigning the
.shared
database scope to instances ofNSPersistentCloudKitContainerOptions
- Sharing of managed objects to single
CKRecordZone
- Direct access to read or write the
CKShare
for a managed object via new API onNSPersistentCloudKitContainer
.
For more information be sure to watch our session Build apps that share data through CloudKit and Core Data on Friday.