Chapter 12. Data persistence in iCloud

This chapter covers

  • Storing user preferences in iCloud
  • Storing data in iCloud using CloudKit

In this chapter, you’ll take storing data to the next level—iCloud.

Until now, you’ve only stored user defaults locally on the device. What happens if the user opens your app on another device they own?

In this chapter, you’ll explore iCloud, a convenient cloud data storage service provided by Apple, which can be used by developers to automatically share data and give your user the same experience between multiple devices. You’ll look at storing discrete values such as user preferences in iCloud using the ubiquitous key-value store. You’ll also explore CloudKit, an essential framework for storing structured ...

Get iOS Development with Swift 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.