Databases are dynamic entities. Over time, data inside them are added, removed, and modified. There’s a fair chance that, in addition to the data, the structure, or schema, of your database tables will change over time. You might want to add more or remove properties to a model, or define new models that have relationships to existing models.
SwiftData luckily has mechanisms to help you migrate your schemas from one version to another. In this lesson you will:
Discover when you need to worry about migrating your model schema
Learn about how to annotate your schema models for migration while using model inheritance
See forum comments
This content was released on Dec 10 2025. The official support period is 6-months
from this date.
In this segment, you’ll get an introduction to this lesson and the learning objectives.
Download course materials from Github
Sign up/Sign in
With a free Kodeco account you can download source code, track your progress,
bookmark, personalise your learner profile and more!
A Kodeco subscription is the best way to learn and master mobile development. Learn iOS, Swift, Android, Kotlin, Flutter and Dart development and unlock our massive catalog of 50+ books and 4,000+ videos.