You have to write some code that does the migration in the custom migration stage's willMigrate / didMigrate. There is a sample here: https://www.hackingwithswift.com/quick-start/swiftdata/how-to-store-swiftdata-attributes-in-an-external-file - although I'm not finding any more detailed resources on how to migrate and when to use will- or did-Migrate, so I guess we'll just have to try it out.
Topic:
App & System Services
SubTopic:
iCloud & Data
Tags: