SwiftData updates: Section your query results by creating your query with a macro that takes a sectionBy parameter, as listed on the Additional query macros page. Use types that conform to Codable in a model, including types you don’t control directly, by using the codable option for Schema.