NSPersistentCloudKitContainer sharing with the new databaseScope option

I'm really excited about the new public database options introduced in the "Sync a Core Data store with the CloudKit public database" talk!

I see in the documentation that the databaseScope refers to the CKDatabase.Scope which includes an option for the shared database.

Does this mean that we will be able to automatically sync CoreData records to a shared CloudKit database this year?

I would really like to add support to my app to sync data with friends through CloudKit, but with the existing system it is too much work to sync shared objects through a CKShare, so I have avoided building it so far. I'm really excited to start using the new changes. Thanks!
NSPersistentCloudKitContainer only supports the private database and the public database. If you want to let your users share data with each other, you need to use the CKShare and CK operations API.
I also noticed the shared database scope alongside the private and public. I assumed it was to be used alongside CKShares somehow - if not, what is the purpose of the shared scope? Just future proofing perhaps?
CKDatabase.Scope is also used in other classes, such as CKDatabase. Introducing a new scope class just for NSPersistentCloudKitContainer wouldn't have been a good idea.
Ah, that makes sense. Thank you.
I think shared record syncing might be next year's new feature.
NSPersistentCloudKitContainer sharing with the new databaseScope option
 
 
Q