I would like to create a private container and share a zone between two users with different iCloud accounts. All changes made by one would be notified with push notifications to the other user's db. Both could change the same information.
Exactly as it is done in this apple project. https://developer.apple.com/documentation/cloudkit/shared_records/sharing_cloudkit_data_with_other_icloud_users
However, I have been reading this code for days and I am stuck on it, it is extremely complicated for my level.
I would really like to know if there is any simple project that uses the same idea to build this logic with swiftui.
In CloudKit, there are two types of sharing, zone sharing and hierarchical sharing, which are quite different. For more information on this topic, please see the following WWDC2021 session:
The sample you mentioned demonstrates hierarchical sharing. If you target to use zone sharing, see the following sample instead:
Best,
——
Ziqiao Chen
Worldwide Developer Relations.