15. CloudKit Sync: Uploading Objects

Everybody is a genius. But if you judge a fish by its ability to climb a tree, it will live its whole life believing that it is stupid.

Albert Einstein

In Chapter 14, “Taming iCloud,” the final touches were added to an iCloud integration specific to one user and the user’s devices. This chapter and the next demonstrate how to leverage a public CloudKit database to keep a small data set synchronized across the devices of multiple iCloud users. This is a key distinction from the previous chapters because it expands iCloud’s scope beyond one person’s data. This topic is split across two chapters. This chapter lays the foundation for synchronization by adding the capability to upload new objects. The following ...

Get Learning Core Data for iOS with Swift: A Hands-On Guide to Building Core Data Applications, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.