Post

Replies

Boosts

Views

Activity

Reply to Check Data Re-Sync on App Reinstall with CloudKit (+SwiftUI)
Maybe this has already been solved or everyone, but this wasn't working for me and it looks like I needed to add mergePolicy and set the automaticallyMergesChangesFromParent on the container's viewContext. Mine looks like this now: container.viewContext.mergePolicy = NSMergeByPropertyStoreTrumpMergePolicy         container.viewContext.automaticallyMergesChangesFromParent = true After removing the app and re-running Xcode the data all synced as expected.
Jul ’21