SwiftData and CloudKit learning resource

Perhaps I should not be asking this here, but can anyone recommend a good learning resource/tutorial for a complete beginner for SwiftData and CloudKit?

Answered by DTS Engineer in 790894022

In the SwiftData layer, the only thing you can use to configure CloudKit is ModelConfiguration.CloudKitDatabase.

Underneath, SwiftData uses NSPersistentCloudKitContainer for CloudKit integration, so all the documentations and knowledges related to NSPersistentCloudKitContainer help understand how SwiftData + CloudKit works, and you can start with CloudKit mirroring.

Best,
——
Ziqiao Chen
 Worldwide Developer Relations.

You can start here https://developer.apple.com/wwdc23/10187 and then use "ultimate" resource here: https://www.hackingwithswift.com/quick-start/swiftdata

Happy coding.

In the SwiftData layer, the only thing you can use to configure CloudKit is ModelConfiguration.CloudKitDatabase.

Underneath, SwiftData uses NSPersistentCloudKitContainer for CloudKit integration, so all the documentations and knowledges related to NSPersistentCloudKitContainer help understand how SwiftData + CloudKit works, and you can start with CloudKit mirroring.

Best,
——
Ziqiao Chen
 Worldwide Developer Relations.

SwiftData and CloudKit learning resource
 
 
Q