SwiftData Basics in 15 minutes

preview_player
Показать описание
SwiftData, announced at WWDC 2023, is a framework that lets developers use Swift-like API to handle persistence in their apps. It lets you save data to the local device and then to retrieve, update and delete that data!

In this SwiftData basics video, you’ll learn:
How to set up their Xcode 15 project to use SwiftData
How to add data, retrieve data, update data and delete data using SwiftData
How SwiftData is different from the CoreData framework

There are 5 steps involved:
00:00 Introduction
01:24 Step 1: Create the model
04:24 Step 2: Create modelContainer
05:15 Step 3: Environment object for the context
06:08 Step 4: Add objects and Query to get the data
09:37 Step 5: Update objects, remove objects from or save the context

This video is based on our SwiftData article here:

To get access to all of our courses, visit our website:
Рекомендации по теме
Комментарии
Автор

Really good and simple description, especially for the CRUD operations.

BasicInsideOut
Автор

Great job! Thanks for the basics, which is what everyone should start with!

karlostj
Автор

Awesome Video, I appreciate simplicity of examples.

andriybelizky
Автор

Your tutorial is clear and easy understand. Thank you! ❤

daxuan
Автор

Great Demo Chris ....Lot easier than earlier database access !!! ... Thanks :D

virendragupta
Автор

Excellent short yet complete tutorial on how to create a swift ui CRUD app. Appreciate this.

thetutorialdoctor
Автор

Great video I just started with swif but I’m pretty secure that I’ll learn Alot with your YouTube video Italia Grazie

RiccardoAlfano
Автор

Thanks for the video. SwiftData looks really nice!!

neila
Автор

clear and straightforward. great tutorial 👍

lvterry
Автор

this is the best swiftdata tutorial!!! thank you!!

tfptyyw
Автор

I do it now, with your tutorial. thanks.

Away
Автор

Thank you! I was scared to approach this topic but you made it easy to understand!

kaato
Автор

Great video. Much easier than Core Data!

wanderer
Автор

Very easy tutorial to follow. Thanks!!

bobmcnerney
Автор

Nice clear presentation style. Cheers!

tonyhawk
Автор

Wow that is a lot easier than CoreData directly.. Good video Chris and thank you for your time!

eman
Автор

Thanks for this very good tutorial!!!🙂

rapier
Автор

great demo Chris, really liked the way you explained it. New sub here :)

mario_luis_dev
Автор

Thanks!

Would love to see a video on sorting and filtering Query data.

pnkbrn
Автор

Hey I just started watching your videos and I was intrested your collection of keyboards that are always prominent in your videos. Would be cool to see a video talking about your keyboards or a setup tour.

benjaminfaershtein