Where to go next?
There are a few different places to go from here to learn more!
There is a free lesson on SwiftData that can be found here.
Learn all about the basics of SwiftData and how you can integrate it into your app.
That free lesson is part of a larger module that goes into other areas where model inheritance comes into play. As mentioned above, any SwiftData code that deals with model inheritance need to be decorated with the @available check. This also applies when you are dealing with schema migrations. There have also been some enhancements to making queries and fetches, helping you improve performance and efficiency. You’ll also learn how to filter on the possible results from the fetches, granting your picker the ability show the user what they want to see.