Перейти к содержимому

WWDC26: What’s new in SwiftData | Apple

Apple Developer

0:00 / 0:00

WWDC26: What’s new in SwiftData | Apple

8 057 просмотров · 3 месяца назад
Apple Developer
329 тыс. подписчиков
8 057 просмотров · 3 месяца назад
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 ResultsObserver and HistoryObserver, giving you the flexibility to drive powerful state objects 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