In this module, you’ll learn about the new features in Swift Data that were introduced at WWDC 2025. The new model inheritance capabilities, and how they impact queries and model migration are covered.
By Josh Steele.
Refresh your knowledge on Swift Data basics, including building models, performing queries, and inserting data.
Identify the difference between composition and inheritance, evaluate whether you should employ inheritance at all, and describe how to incorporate inheritance in your SwiftData models.
Learn about predicates for building queries in SwiftData, and build predicates that are based on multiple properties.
Optimize fetches if you know you just need a limited set of data returned.
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
In this lesson, you’ll get a refresher on inheritance and
composition in object oriented programming, and how to
determine whether you actually need to use model inheritance
when working with SwiftData.
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.