Module 3 of 4 in New in iOS 26

SwiftData in iOS 26

Share
Save for later

Module outcomes

  • 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

Covered concepts

  • Swift Data
  • Inheritance in Object Oriented Programming

Module content

1
SwiftData Basics Lesson (13 mins)
IntroductionStart
SwiftData Basics
Performing Queries
Conclusion
2
Model Inheritance Lesson (15 mins)
IntroductionStart
Inheritance vs Composition
SwiftData Model Demo
Conclusion
3
Efficient Queries Lesson (16 mins)
IntroductionStart
Performing Efficient Queries
Predicates Demo
Conclusion
4
Updates to Schema Migration Lesson (12 mins)
IntroductionStart
Migrating Your Schema
Migrating a Schema Demo
Conclusion

Next module

iOS & Swift New
Agentic Coding with Xcode
In this module, you’ll learn how to enable Agentic AI capabilities in Xcode 26.3, what exactly Agentic AI ... more

Instructors

Contributors

Adriana Kutenko

Illustrator

Brian Moakley

Final Pass Editor

Over 300 content creators. Join our team.