Intro to SwiftData - Model, Container, Fetch, Create, Update & Delete @seanallen
Intro to SwiftData - Model, Container, Fetch, Create, Update & Delete  @seanallen
Uploaded September 2023 | Updated September 2026, 2 hours ago
Go to squarespace.com/seanallen to save 10% off your first purchase of a website or domain using code SEANALLEN.

This is an introduction to SwiftData new in iOS 17 and macOS Sonoma. SwiftData was introduced at WWDC 2023 and is the successor to Core Data. SwiftData is a way to persist your app's data locally on device or in iCloud to sync between devices. This video introduces you to the basic concepts like @Model, containers, context, fetch, create, update, and delete.

Need help with something specific? Book a call with me:
seanallen.teachable.com/p/call?video=mvXFGikltPc

My iOS Dev Courses:
seanallen.teachable.com/?video=mvXFGikltPc

WWDC 2023 -Model your schema with SwiftData:
developer.apple.com/videos/play/wwdc2023/10195

My Formula 1 App:
apps.apple.com/app/formula-widgets-push-push/id6744127751

X (Twitter):
Sean Allen - twitter.com/seanallen_dev

Hired.com:
hired.com/x/1n01g

Book and learning recommendations that help out the channel if you decide to purchase (Affiliate Links):

Paul Hudson's Hacking With Swift:
gumroad.com/a/762098803

Donny Wals - Combine:
gumroad.com/a/909014131

Mark Moeyken’s SwiftUI Books:
bigmountainstudio.com/swiftui-views-book/fzc51

Objc.io Books (Thinking in SwiftUI & Advanced Swift):
gumroad.com/a/656585843

Timestamps:
0:00 - What is SwiftData?
1:18 - Create Project & Model (@Model)
5:35 - Create & Explain Container (2 ways to do it)
8:42 - Separate Container Object (Configurations)
12:03 - UI Walkthrough
14:29 - Create Expense Items
17:33 - Fetch Expense Items (@Query)
18:39 - Delete Expense Items
20:20 - Update Expense Item
24:52 - Query Predicates (Filter Results)

#swift #softwaredeveloper #iosdeveloper
Intro to SwiftData - Model, Container, Fetch, Create, Update & DeletePlay: The Secret Weapon for iOS Devs & DesignersStop Creating Custom Colors in SwiftUIXcode 15 - Whats NewIntro to Unit Testing in SwiftNavigationStack - SwiftUI Programmatic Navigation - iOS 16ARKit: What can it do? (visionOS)Apples Use of SwiftUI, New Concurrency Vision, 2024 App Store Awards, Paywalls, and MoreYoure using SwiftUI wrongvisionOS Godot Support, Career Advice, TextRenderer, App Store Upload, and MoreCleaner, Safer Code with Swift KeyPathsSwift Delegate Protocol Pattern Tutorial 2023 | iOS Communication Patterns
Sean Allen |

Intro to SwiftData - Model, Container, Fetch, Create, Update & Delete

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER