Загрузка...

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/documentation/SwiftData
Adopting SwiftData for a Core Data app: https://developer.apple.com/documentation/CoreData/adopting-swiftdata-for-a-core-data-app
Code-along: Add persistence with SwiftData: https://developer.apple.com/videos/play/wwdc2026/275
Track model changes with SwiftData history: https://developer.apple.com/videos/play/wwdc2024/10075

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

Видео WWDC26: What’s new in SwiftData | Apple канала Apple Developer
Яндекс.Метрика
Все заметки Новая заметка Страницу в заметки
Страницу в закладки Мои закладки
На информационно-развлекательном портале SALDA.WS применяются cookie-файлы. Нажимая кнопку Принять, вы подтверждаете свое согласие на их использование.
О CookiesНапомнить позжеПринять