Breaking Down Swift Data Migrations | SwiftData Tutorial



Breaking Down Swift Data Migrations | SwiftData Tutorial

Breaking Down Swift Data Migrations | SwiftData Tutorial

Breaking Down Swift Data Migrations | SwiftData Tutorial

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

*Timestamps:*

00:00 – Intro
00:40 – What is A SwiftData Migration?
01:19 – What Is A Lightweight Migration In SwiftData
02:05 – Defining A Versioned Schema In SwiftData
07:21 – How To Debug SwiftData
11:06 – Changing Property Names In SwiftData
16:17 – How To Create A Schema Migration Plan In SwiftData
18:41 – How To Setup Your ModelContainer With Your Migration Plan
19:41 – How To Test Your Migration Plan In SwiftData
20:40 – When To Use Custom Migrations In SwiftData
22:08 – Creating A New VersionedSchema
23:54 – How to Create a custom migration stage in SwiftData

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

In this Swift Data Tutorial, We’ll be taking a look at migrations in Swift Data. We’ll take a look at how we can add versioning to our Swift Data Schema and see how it evolves over time by adding new features or tweaking existing functionality.

We’ll also look at custom migrations and lightweight migrations in SwiftData too. To see the difference and when to use each one. We’ll see how to manage this using a Migration Plan in SwiftData and modelling our schema using the VersionSchema API.

We’ll also discuss how to test swiftdata migrations too with some handy tools to help you speed up development.

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

*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

Comments are closed.