This module will examine syncing SwiftData with CloudKit. These two frameworks now work seamlessly together. Adding CloudKit makes for a compelling user experience, as the data and states can be synced between their devices.
Once a few prerequisites are met, setting up Cloudkit requires only a few steps. You’ll need an Apple developer account and a development team. Your users will log in with their Apple ID, and the data will sync automatically.
After setting up CloudKit, you’ll revisit the macOS version of the app and update the image support.
In this lesson, you’ll learn:
How easy it is to share your records between your iPhone, iPad, Vision Pro, and your Mac.
How to handle large data tasks. This can be done by employing Swift Concurrency with async/await. SwiftData adds to the efficiencies with the new ModelActor, which is tuned for SwiftData tasks and protections to ensure fast and safe transactions.
Now, continue to the next section for some backing theory.
See forum comments
This content was released on Mar 19 2025. The official support period is 6-months
from this date.
This lesson looks at syncing data between devices with CloudKit. You’ll explore Apple’s CloudKit
Console for debugging and reviewing the data. You’ll revisit MacOS with some compatibility fixes
and explore concurrency.
Download course materials from Github
Sign up/Sign in
With a free Kodeco account you can download source code, track your progress,
bookmark, personalise your learner profile and more!
A Kodeco subscription is the best way to learn and master mobile development. Learn iOS, Swift, Android, Kotlin, Flutter and Dart development and unlock our massive catalog of 50+ books and 4,000+ videos.