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.
Topic:
App & System Services
SubTopic:
iCloud & Data
Tags: