Post

Replies

Boosts

Views

Activity

Different Scenarios with Core Data and CloudKit
I am creating a SwiftUI app that uses CloudKit and Core Data. If the user is signed in to iCloud it will use both, if not, it will only use Core Data. While testing I realized there are so many situations you have to take into account, ex: The user started off not signed into iCloud, then later signed in after using the app for a while. So now there's an issue with merging the cloud data and the recent core data. I want to be able to ask the user if they want to use the backed-up data or the new data. How would I go about deleting the Core Data, and reloading the backed-up data, or vice versa.
1
0
449
Apr ’22