It would be helpful if you could elaborate a bit on willMigrate and didMigrate.
What exactly has to happen?
lets assume we got
wllMigrate { context in
let oldDatamodel = try context.fetch(oldDataModelDescriptor)
for oldData in OldDataModel {
--> what happens here?
}
try? context.save()
} didMigrate { context in
let newDatamodel = try context.fetch(newDataModelDescriptor)
for newData in NewDataModel {
--> what happens here?
}
try? context.save()
}
Topic:
App & System Services
SubTopic:
iCloud & Data
Tags: