How To Save A Struct In SwiftData | SwiftData Tutorial | #14

preview_player
Показать описание
How To Save A Struct In SwiftData

**********************************

*Timestamps:*

00:00 - Intro
00:32 - Making Our Struct & Enum Codable
03:02 - Saving Structs & Enums In SwiftData
04:36 - Inspecting our data
05:39 - Structs Vs Relationships
06:09 - Warnings!!!

**********************************

In this SwiftData Tutorial we're going to take a look at how we can save structs and enums in SwiftData.

In our on-going SwiftData series we're going to look at creating a configuration for items that will use both a Struct & Enum in SwiftData to configure some values that we'll save in our database.

We'll also inspect our data to see how SwiftData saves it as wel as discuss the best practises for when you want to save a struct or enum in SwiftData.

**********************************

*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*

**********************************

*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*

*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*

**********************************

*Download Source Code*

Interested in looking at the source code? Then check out the GitHub Repo below

[GITHUB REPO HERE]

**********************************

EditorKeys
View Editor Keys Amazing Products with the link below and use the discount code for 10% off any product

Get a 10% Discount Code on any product with the code below
TUNDSDEV

See my keyboard cover in action with my review below 👇🏾

**********************************

RØDE Wireless Mic

RØDE SmartLavPlus Microphone

2021 Apple MacBook Pro (16-inch, Apple M1 Pro chip with 10‑core CPU and 16‑core GPU, 16GB RAM, 1TB SSD) - Space Grey

Apple Magic Keyboard with Numeric Keypad (Wireless, Rechargeable) 

Apple Magic Mouse

Secretlab TITAN 2020 Charcoal Blue Gaming Chair

ErgoFoam Ergonomic Foot Rest for Under Desk

Lumbar Support Pillow

Macbook Stand for Apple Macbook and All Notebooks

Portable Chair Green Screen Background

**********************************

#iosdev #iosdevelopment #swift #swiftlanguage #xcode #appdevelopment #mobileappdevelopment #iosappdevelopment #appdeveloper #iosprogramming #iosengineer #appdevelopmenttips #iosdevelopmenttips #swiftui
Рекомендации по теме
Комментарии
Автор

Great vidéo as always. I would live to se a vidéo on saving optionset and measurement unit in swiftdata.

andremethot
Автор

Thank you very much for your work. Could you please make the recource available?

thomasfahlke
Автор

Hi! I don't see the Github repo linked in the description. Any chance you can send me that link? I am having issues with my SwiftData code using Codable structs

lulosound
Автор

Another warning: It looks like you can't filter or sort enums in SwiftData.

stevethewindsurfer
join shbcf.ru