This is my sample project that smushes @mergesort's excellent Boutique framework with @RyanAshcraft's excellent CloudSyncSession framework
Non-code things:
- Add Capabilities - iCloud (with CloudKit selected + a container), Background Modes (with Background fetch and Remote notifications selected)
- Set up the CloudKit container with the desired record types ("Item" in this project), zones ("ItemZone"), and subscriptions ("ItemZoneSubscription")
Note: as it stands, I haven't hooked up delete or conflict resolution yet.
In action: