WWDC26: What’s new in SwiftData | Apple

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. Explore related documentation, sample code, and more: SwiftData: https://developer.apple.com/documenta... Adopting SwiftData for a Core Data app: https://developer.apple.com/documenta... Code-along: Add persistence with SwiftData: https://developer.apple.com/videos/pl... Track model changes with SwiftData history: https://developer.apple.com/videos/pl... 00:00 - Introduction 00:53 - Sectioning your fetches 02:56 - Using custom types 06:26 - Observing data stores with ResultsObserver 09:41 - Observing history with HistoryObserver 12:20 - Next steps More Apple Developer resources: Video sessions: https://apple.co/VideoSessions Documentation: https://apple.co/DeveloperDocs Forums: https://apple.co/DeveloperForums App: https://apple.co/DeveloperApp