Post

Replies

Boosts

Views

Activity

SwiftData, DocumentGroup and iCloud Drive sync
I'm trying to get a document style app, backed by SwiftData going using DocumentGroup. I notice that the sample code allows me to move files to iCloud Drive when selecting a file location for my Document. However, no automatic syncing occurs between two instances of the application, running on the same iCloud account and looking at the same file. One instance of the application will make changes; while the other instance does not see these changes (unless the other changes closes the document and re-open it). I've worked with CoreData+CloudKit sync in the past and this solution required to listen to a silent push notification to receive updates from CloudKit but I cannot find any documentation that explains what needs to be setup for a SwiftData Document-based app to receive such notifications from iCloud Drive. Are there any examples of this working or any documentation that I could refer to in order to get started with this solution?
0
1
562
Jan ’24