Sorting, Filtering & Relationships 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

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
Download course materials from Github
Previous: Many to Many Relationships Demo Next: Lesson 2: SwiftData & Core Data Interoperability Quiz