The Last SwiftData Tutorial You Will Ever Need

  Рет қаралды 4,930

Rebeloper - Rebel Developer

Rebeloper - Rebel Developer

Күн бұрын

The Last SwiftData Tutorial You Will Ever Need
SwiftUI Camp 👉 rebeloper.com/swiftui-camp
In this SwiftData tutorial, we'll cover everything you need to know about handling data with SwiftUI. We'll cover everything from creating a model to editing and saving data. By the end of this tutorial, you'll have everything you need to know to get started with SwiftData.
If you're new to SwiftUI or data handling in general, then this tutorial is for you. By the end of this video, you'll have everything you need to start using SwiftUI to handle your data the way you want!
00:00 INTRO
01:08 SWIFTUI CAMP
01:48 CREATING A SWIFTUI PROJECT WITH SWIFTDATA
02:50 SWIFTDATA PROJECT IDEA
03:40 DEFINING A DATA MODEL IN SWIFTDATA
05:26 CREATE A MODEL CONTAINER IN SWIFTDATA
06:12 MIGRATION IN SWIFTDATA
07:12 CREATING A VERSIONED SCHEMA IN SWIFTDATA
10:57 SWIFTDATA TYPEALIASES
12:04 CREATE A MODEL CONTAINER FOR A MIGRATION PLAN
15:19 ADD AND UPDATE IN SWIFTDATA
20:00 RELATIONSHIPS IN SWIFTDATA
22:36 QUERY IN SWIFTDATA
25:12 LIST VIEW UI
31:16 HOW TO INSERT A MODEL IN SWIFTDATA
40:30 UPDATE A MODEL IN SWIFTDATA
41:24 DELETE MODELS IN SWIFTDATA
46:30 SORTING QUERY RESULTS IN SWIFTDATA
54:08 USING PREDICATES FOR FILTERING IN SWIFTDATA
58:52 MIGRATING IN SWIFTDATA
01:00:48 CREATING A MIGRATION PLAN IN SWIFTDATA
01:08:15 WHERE TO GO FROM HERE
→ PLAYLIST:
SwiftUI Camp 👉 • Senior SwiftUI Develop...
DO YOU WANT TO ME TO WORK ON YOUR PROJECT?
HIRE ME → rebeloper.com/hire-us/
TOOLS I RECOMMEND:
→ rebeloper.com/tools
__________
Get in touch:
→ support@rebeloper.com
SUBSCRIBE to weekly tips & tutorials for building iOS apps!
→ kzfaq.info?su...
GitHub: github.com/rebeloper/
Hire me: rebeloper.com/hire-us/
LinkedIn: / rebeloper
My Blog: rebeloper.com/blog
Follow me on Instagram: / rebeloper
Twitter: / rebeloper
______
#rebeloper

Пікірлер: 17
@rebeloper
@rebeloper 8 ай бұрын
Senior SwiftUI Developer tries SwiftUI Test 👉 kzfaq.info/get/bejne/b7aIhZiavb6RZ58.html&ab_channel=Rebeloper-RebelDeveloper
@Michael-Martell
@Michael-Martell 3 ай бұрын
Dude I’ve been needing this! TYSM!
@rebeloper
@rebeloper 2 ай бұрын
Glad I could help! Shocking: AI Creates Complete iOS App 👇 kzfaq.info/get/bejne/rJicpJdzlbyxdp8.html
@kraigwastlund7443
@kraigwastlund7443 2 ай бұрын
Thanks Alex. Very informative. :)
@rebeloper
@rebeloper 2 ай бұрын
My pleasure! Next check out my latest video about Mastering SwiftUI Error Alerts: Fix Your App in Seconds! 👇 kzfaq.info/get/bejne/ndKXZM6gsrndfHU.html&ab_channel=Rebeloper-RebelDeveloper
@chezchezchezchez
@chezchezchezchez 8 ай бұрын
This is great. No more SwiftData videos for me!!
@rebeloper
@rebeloper 7 ай бұрын
Glad to hear that! Next watch Master Keychain Access Like a Pro using SwiftUI Property Wrappers 👇 kzfaq.info/get/bejne/eJ14dbCKqqu-pJc.html&ab_channel=Rebeloper-RebelDeveloper
@michoyou7876
@michoyou7876 8 ай бұрын
tnx! Can you tell us a bit about creating a #predicate from other #predicate as it was possible with NSCompoundPredicate.
@rebeloper
@rebeloper 8 ай бұрын
At the moment SwiftData does not support NSCompoundPredicates :( 🚨 A Subscriber Sent Me a Junior Swift Interview Challenge, Let's Solve It 👇 kzfaq.info/get/bejne/qdugraSZtc-oimw.html&ab_channel=Rebeloper-RebelDeveloper
@OttoFaerber
@OttoFaerber 8 ай бұрын
The setup of a database is easier than with coredata, but filtering via predicate at runtime has become more cumbersome
@rebeloper
@rebeloper 8 ай бұрын
Predicates are always cumbersome because they have to be versatile. I prefer SwiftData anyway :) 🚨 A Subscriber Sent Me a Junior Swift Interview Challenge, Let's Solve It 👇 kzfaq.info/get/bejne/qdugraSZtc-oimw.html&ab_channel=Rebeloper-RebelDeveloper
@LebenWerden
@LebenWerden Ай бұрын
Hi, how I can use onMove modifier on Query?
@rebeloper
@rebeloper 28 күн бұрын
It's a bit difficult. I can help you on a mentoring session: rebeloper.com/mentoring Next check out In-App Purchases in SwiftUI: Full Tutorial! 👇 kzfaq.info/get/bejne/hN6hksydyaqzknk.html&ab_channel=Rebeloper-RebelDeveloper
@user-wl8qo8dd9o
@user-wl8qo8dd9o 6 ай бұрын
hay quá
@rebeloper
@rebeloper 6 ай бұрын
🤗 Now get ChatGPT 4 for Free in VSCode for iOS and macOS app development 👇 kzfaq.info/get/bejne/b9aVlstlzry4h4k.html&ab_channel=Rebeloper-RebelDeveloper
@AkimboFennec
@AkimboFennec 2 ай бұрын
I encountered a problem in swift data. When i add @Attribute(.unique), and then test it with a duplicate model the app totally crashes. Why is that? Let’s say i have @Model class Trip{ @Attrbiute(unique) var name: String, var count: Int…}. Then i create a SwiftUI view to add a trip to my trips persisted storage. Let say i add a trip with name: “Rome”. Then when i attempt to add another trip with the same name @Attribute(.unique), with the name “Rome”, as the first time, the app just crashes.
@rebeloper
@rebeloper 2 ай бұрын
Must be a bug in SwiftData. I know that .unique is quite buggy. Does not work with iCloud either. Shocking: AI Creates Complete iOS App 👇 kzfaq.info/get/bejne/rJicpJdzlbyxdp8.html
A Subscriber Sent Me a Junior Swift Interview Challenge, Let's Solve It
9:50
Rebeloper - Rebel Developer
Рет қаралды 747
Uncover the Simplicity of SwiftData: Replace CoreData in Seconds!
35:14
Rebeloper - Rebel Developer
Рет қаралды 4,8 М.
The day of the sea 🌊 🤣❤️ #demariki
00:22
Demariki
Рет қаралды 92 МЛН
ОСКАР ИСПОРТИЛ ДЖОНИ ЖИЗНЬ 😢 @lenta_com
01:01
Luck Decides My Future Again 🍀🍀🍀 #katebrush #shorts
00:19
Kate Brush
Рет қаралды 8 МЛН
Я нашел кто меня пранкует!
00:51
Аришнев
Рет қаралды 1 МЛН
Concurrency of SwiftData, by Donny Wals (English)
31:08
CocoaHeadsNL
Рет қаралды 1,6 М.
SwiftUI Masterclass: Build To Do List App
2:42:49
iOS Academy
Рет қаралды 104 М.
Create your first app with SwiftUI and SwiftData
2:19:51
Paul Hudson
Рет қаралды 41 М.
SwiftData Migrations | SwiftData Tutorial | #11
32:24
tundsdev
Рет қаралды 3,5 М.
Generative AI in a Nutshell - how to survive and thrive in the age of AI
17:57
SwiftData Basics in 15 minutes
15:18
CodeWithChris
Рет қаралды 39 М.
Телефон в воде 🤯
0:28
FATA MORGANA
Рет қаралды 1,2 МЛН
1$ vs 500$ ВИРТУАЛЬНАЯ РЕАЛЬНОСТЬ !
23:20
GoldenBurst
Рет қаралды 1,4 МЛН
Неразрушаемый смартфон
1:00
Status
Рет қаралды 2,1 МЛН