SwiftData is a powerful and expressive persistence framework built for Swift. We’ll show you how you can model your data directly from Swift code, use SwiftData to work with your models, and integrate with SwiftUI.
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
What’s new in SwiftUI: https://developer.apple.com/videos/play/wwdc2023/10148
Discover Observation in SwiftUI: https://developer.apple.com/videos/play/wwdc2023/10149
Build an app with SwiftData: https://developer.apple.com/videos/play/wwdc2023/10154
What’s new in Swift: https://developer.apple.com/videos/play/wwdc2023/10164
Migrate to SwiftData: https://developer.apple.com/videos/play/wwdc2023/10189
Model your schema with SwiftData: https://developer.apple.com/videos/play/wwdc2023/10195
Dive deeper into SwiftData: https://developer.apple.com/videos/play/wwdc2023/10196
00:00 - Intro
01:07 - Using the model macro
03:17 - Working with your data
07:02 - Use SwiftData with SwiftUI
08:10 - Wrap-up
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