WWDC26: Code-along: Add persistence with SwiftData | Apple @AppleDeveloper
WWDC26: Code-along: Add persistence with SwiftData | Apple  @AppleDeveloper
Uploaded June 2026 | Updated November 2026, 1 hour ago
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.

Explore related documentation, sample code, and more:
Wishlist: Planning travel in a SwiftUI app: developer.apple.com/documentation/SwiftUI/wishlist-planning-travel-in-a-swiftui-app
SwiftData: developer.apple.com/documentation/SwiftData
SwiftData: Dive into inheritance and schema migration: developer.apple.com/videos/play/wwdc2025/291
What’s new in SwiftData: developer.apple.com/videos/play/wwdc2026/274

00:00 - Introduction
01:05 - Identify relevant state
03:17 - Define your schemas
09:41 - Define model relationships
13:33 - Update the view layer
21:47 - Next steps

More Apple Developer resources:
Video sessions: apple.co/VideoSessions
Documentation: apple.co/DeveloperDocs
Forums: apple.co/DeveloperForums
App: apple.co/DeveloperApp
WWDC26: Code-along: Add persistence with SwiftData | AppleIntroducing Core AIWWDC26: What’s new in Wallet | AppleWWDC26: Read between the strokes with PencilKit | AppleWWDC26: Craft clear names for features and labels in your app | Apple3 great updates for Apple In-App PurchaseWWDC26: Offer subscriptions to groups and organizations | AppleHello, Apple Developer Center BerlinDiscover what’s next: The biggest updates from WWDC26 | Meet with AppleWWDC26: Enhance your presence on the App Store | AppleLocalize your entire app with Xcode agentsWWDC26: Coding Intelligence for Beginners Group Lab | Apple
Apple Developer |

WWDC26: Code-along: Add persistence with SwiftData | Apple

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER