Are there good examples of integrating SwiftUI, Coredata and Cloudkit working nicely together?
Sample project for SwiftUI, CoreData and Cloudkit?
You might take a look at my following project, which I used as a testbed when playing with the APIs:
It is a SwiftUI + Core Data CloudKit project that supports iOS and watchOS, and covers the following topics:
- Creating the CloudKit Schema for Apps
- Setting up the Core Data Stack
- Sharing a Core Data object
- Detecting Relevant Changes by Consuming Store Persistent History
- Removing Duplicate Data
- Implementing a Custom Sharing Flow
Follow the steps described in Readme to play with it, and feel free to provide your feedback here so I can improve the project and hopefully better help.
The link is now here:
- Sharing Core Data objects between iCloud users <https://developer.apple.com/documentation/coredata/sharing_core_data_objects_between_icloud_users>
Best,
——
Ziqiao Chen
Worldwide Developer Relations.