Swift Data Relationships ? | SwiftData Tutorial | Part 2
⚠️ The crash at 9:41 is a known issue & has a workaround also by calling modelContext.save() after the deletion of an item
Relationships In SwiftData ? | Adding Categories To A To-Do App, SwiftData Tutorial
Build A To-Do List App using SwiftData (Swift Data Tutorials) - Free Course
https://www.youtube.com/playlist?list=PLvUWi5tdh92wZ5_iDMcBpenwTgFNan9T7
**********************************
*Timestamps:*
00:00 - Intro
00:32 - ???Warning
01:03 - What Is A One To Many Relationship
02:11 - How To Setup A One To Many Relationship in SwiftData
06:23 - How To Save Categories in SwiftData
07:19 - How To Fetch Categories in SwiftData
08:32 - How To Delete in SwiftData
09:41 - Fixing A Crash With Relationship Deletions
12:41 - How To Save Data One To Many Relationships in SwiftData
19:44 - Update A Relationship In SwiftData
23:20 - Handling empty states with SwiftData
**********************************
Now that we have SwiftData, you may be wondering. "How can I relationships in SwiftData". Don't worry I've got you. In this SwiftData Tutorial, I'll be showing you how to work with SwiftData Relationships specifically a one-to-many relationship in SwiftData.
We'll be building categories for our SwiftUI To-Do App, and give users the capability to create new categories and attach them to a todo. We'll also take a look at how to CRUD operations with a SwiftData relationship so that we can update our categories.
**********************************
*Check Out My Courses ???*
Enjoy my teaching style? Check out my other courses on my website that may interest you, they range from beginner to advanced topics within iOS development.
*Link to Website*
https://tunds.dev/#courses
**********************************
*Join the crew ?*
Want to help support the channel? Become a member with the join link below and get access to exclusive badges and stickers, as well as other perks that are coming soon.
*Become a channel member*
https://www.youtube.com/@tundsdev/join
*Support in other ways ?*
You can support me for free and help the channel grow so that I can continue to make the best iOS development content for you by liking, commenting, subscribing, and hitting the notification bell.
All of this really helps my channel grow and allows me to keep on making content for you. If you’re interested in subscribing to the channel then you can do so with the link below.
*Subscribe to the tundsdev YouTube channel*
https://www.youtube.com/c/tundsdev?sub_confirmation=1
**********************************
*Download Source Code*
Interested in looking at the source code? Then check out the GitHub Repo below
https://github.com/tunds/youtube-content-2023
**********************************
EditorKeys
View Editor Keys Amazing Products with the link below and use the discount code for 10% off any product
www.editorskeys.com/tundsdev
Get a 10% Discount Code on any product with the code below
TUNDSDEV
See my keyboard cover in action with my review below ??
https://youtu.be/6-75YK-8EmI
**********************************
RØDE Wireless Mic
https://amzn.to/3D5qo3V
RØDE SmartLavPlus Microphone
https://amzn.to/3DtVUdG
2021 Apple MacBook Pro (16-inch, Apple M1 Pro chip with 10‑core CPU and 16‑core GPU, 16GB RAM, 1TB SSD) - Space Grey
https://amzn.to/3Drc2fH
Apple Magic Keyboard with Numeric Keypad (Wireless, Rechargeable)
https://amzn.to/3VUctXh
Apple Magic Mouse
https://amzn.to/3sqXSoM
Secretlab TITAN 2020 Charcoal Blue Gaming Chair
https://amzn.to/3D2jVXI
ErgoFoam Ergonomic Foot Rest for Under Desk
https://amzn.to/3srJOLM
Lumbar Support Pillow
https://amzn.to/3eXVfrg
Macbook Stand for Apple Macbook and All Notebooks
https://amzn.to/3DqG7vR
Portable Chair Green Screen Background
https://amzn.to/3gG62GU
**********************************
#iosdev #iosdevelopment #swift #swiftlanguage #xcode #appdevelopment #mobileappdevelopment #iosappdevelopment #appdeveloper #iosprogramming #iosengineer #appdevelopmenttips #iosdevelopmenttips #swiftui
Что делает видео по-настоящему запоминающимся? Наверное, та самая атмосфера, которая заставляет забыть о времени. Когда вы заходите на RUVIDEO, чтобы посмотреть онлайн «Swift Data Relationships ? | SwiftData Tutorial | Part 2», вы рассчитываете на нечто большее, чем просто загрузку плеера. И мы это понимаем. Контент такого уровня заслуживает того, чтобы его смотрели в HD 1080, без дрожания картинки и бесконечного буферизации.
Честно говоря, Rutube сегодня — это кладезь уникальных находок, которые часто теряются в общем шуме. Мы же вытаскиваем на поверхность самое интересное. Будь то динамичный экшн, глубокий разбор темы от любимого автора или просто уютное видео для настроения — всё это доступно здесь бесплатно и без лишних формальностей. Никаких «заполните анкету, чтобы продолжить». Только вы, ваш экран и качественный поток.
Если вас зацепило это видео, не забудьте взглянуть на похожие материалы в блоке справа. Мы откалибровали наши алгоритмы так, чтобы они подбирали контент не просто «по тегам», а по настроению и смыслу. Ведь в конечном итоге, онлайн-кинотеатр — это не склад файлов, а место, где каждый вечер можно найти свою историю. Приятного вам отдыха на RUVIDEO!
Видео взято из открытых источников Rutube. Если вы правообладатель, обратитесь к первоисточнику.