You started out learning to sort records with a simple sort as well as multi-level sorts using SortDescriptors. Next you learned about creating predicates to filter records and narrow down on a subset. You used ContentUnavailableView when there were no records that matched the filter or search. Then you added Search to be able to combine and search on terms.
Moving on to Relationships, you learned to adjust the models for SwiftData to create and manage One-to-Many and Many-to-Many relationships. Along the way you learned various how to create mock data with images. You looked under the hood to inspect the backing data and see how your models are connected.
That’s it for this lesson. Move on to the next lesson to learn more about SwiftData and how to support other platforms.
See forum comments
This content was released on Mar 19 2025. The official support period is 6-months
from this date.
Wrapping up the lesson on sorting, filtering and relationships.
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!
Previous: Many to Many Relationships Demo
Next: Lesson 2: SwiftData & Core Data Interoperability Quiz
All videos. All books.
One low price.
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.