Are there good examples of integrating SwiftUI, Coredata and Cloudkit working nicely together?
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.