I have been fiddling with CloudKit for some time now, but I can't find a real-life example for how to use CKRecordZone. I understand their capabilities (namely, grouping records, especially for subscriptions), but does someone have a real experience of having used them, and to map which concept ?
Best How To :
CloudKit record zones give you three main benefits:
- It allows you to do atomic operations (either all or none of the changes will get applied)
- It gives you sync capabilities, so you can fetch record changes from a previous point in time (with a change token) as opposed to having to download the full list of records every time you talk with the server.
- It's useful for logically grouping records that belong together.