At the end of the day, SwiftData is just a bunch of swift classes, and so it can be as simple or complex as you want to make them.
Have you figured out how to link SwiftData with CloudKit containers? I'm still trying to work that out. The ModelContainer is created in the body of the app, and that doesn't take a cloud kit container name. I'd love to see a sample of how you're doing that.
Post
Replies
Boosts
Views
Activity
What do you mean that CKSyncEngine is a third-party framework? It's a native part of CloudKit.
I'm just starting to play with this myself, but as far as I can tell you can use SwiftData with CKSyncEngine. The sample Apple provided, at https://github.com/apple/sample-cloudkit-sync-engine, shows linking CloudKit to your model. The model could be a SwiftData model that just includes something like a var cloudKitRecordId: CKRecord.ID? property.
You probably did something like this:
NavigationView {
	ContentView()
		.environmentObject(yourObject)
}
whereas you have to do this instead (i.e. put the environmentObject *outside* the NavigationView
NavigationView {
	ContentView()
}
.environmentObject(yourObject)
Please ignore this, I was running the wrong project on the simulator :(
> The user's device is an iOS iPhoneThat's true, but that doesn't help. PassKit creates an identifier for the device and that's what is tracked. I wouldn't have a way to associate that device to the pass, as far as I can tell.
If the user scans something then the vendor's database doesn't know who the user is.