Andrew Bancroft 6/6/2019

First Impressions of NSPersistentCloudKitContainer

Read Original

This article provides a hands-on first look at Apple's NSPersistentCloudKitContainer, introduced at WWDC 2019. The author explains how this new class automates common tasks like retrieving CloudKit data, merging it with local Core Data stores, scheduling synchronization, handling errors, and mapping NSManagedObjects to CKRecords. It highlights the time savings and reduced complexity for developers wanting to add CloudKit sync to existing Core Data apps. The article also covers initial setup steps, including enabling Core Data and CloudKit in Xcode and the boilerplate code generated for the persistent container. It's a practical guide for iOS/macOS developers interested in cloud-backed data persistence.

First Impressions of NSPersistentCloudKitContainer

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser

Top of the Week

No top articles yet