What are the changes in swiftdata in ?
Asked on 2026-06-18
•@wwdc261 search
In SwiftData, the new features highlighted are:
- Sectioned fetches with
Query - Custom type storage using
Codableattributes for types from other frameworks ResultsObserverto observe query results outside SwiftUI viewsHistoryObserverto observe and react to persistent history changes in your store
If you want, I can also summarize these by chapter from What’s new in SwiftData.

What’s new in SwiftData
Discover the latest enhancements to SwiftData. We’ll show you how to persist custom and third-party types using Codable, and group fetched data into sections in your SwiftUI app. We’ll also explore how to observe data store changes anywhere else using ModelResultsObserver and HistoryObserver, giving you the flexibility to drive powerful state objects, integrate with delegate-based architectures, and react precisely to model updates.

Code-along: Add persistence with SwiftData
Experience SwiftData in action as we add persistence to an existing app. We’ll show you how to define your data models and seamlessly integrate persistent data with SwiftUI. You’ll also learn foundational skills for managing your app’s state using this expressive, declarative API.

What’s new in Swift
Join us for an update on Swift. Discover the latest language advancements, including updates for everyday ergonomics, improved concurrency, and safer high-performance code. Explore workflow and language interoperability improvements and updates in embedded Swift.
