Hi, I love how CoreData and CloudKit work together. However, it seems like the need to use custom zones for CloudKit user-to-user sharing means not getting the great synchronization of CloudKit and CoreData. What is the recommended approach and better, where can I get more detailed developer documentation? The developer.apple.com/documentation seems incomplete. Thanks so much !
You can use NSPersistentCloudKitContainer, but you have to implement the code for sharing manually. Here's a great description of what's needed along with sample code: https://developer.apple.com/documentation/cloudkit/sharing_cloudkit_data_with_other_icloud_users
You can retrieve CKRecord objects from NSPersistentCloudKitContainer using https://developer.apple.com/documentation/coredata/nspersistentcloudkitcontainer/3141668-recordformanagedobjectid?language=objc
You can retrieve CKRecord objects from NSPersistentCloudKitContainer using https://developer.apple.com/documentation/coredata/nspersistentcloudkitcontainer/3141668-recordformanagedobjectid?language=objc