Conclusion

Heads up... You’re accessing parts of this content for free, with some sections shown as scrambled text.

Heads up... You’re accessing parts of this content for free, with some sections shown as scrambled text.

Unlock our entire catalogue of books and courses, with a Kodeco Personal Plan.

Unlock now

Migrating your model schema is vital for the successful continued operation of your app. If the schema is not properly migrated, interactions such as saving model objects in the database can fail, since the expected properties in the code no longer match the properties defined in the schema. This can cause your app to crash, so don’t forget to handle the migration of schemas, as many as you need, so your user’s experience remains free of errors.

There weren’t a lot of SwiftData updates this year from WWDC, but they were impactful ones, centering around the addition of the long requested model inheritance feature.

See forum comments
Download course materials from Github
Previous: Migrating a Schema Demo