I can teach you the basics of SwiftData in 4 hours π©π½βππ¨π»βπ
Hi π
This week I want to talk to you about SwiftData and how you can quickly get up-to-speed and start using this framework in your iOS app!
But first, I have a big thank you for the pretty cool indie dev project that sponsored this email: SwiftyLaunch
Advertisement
Sponsors like SwiftyLaunch really help me grow my content creation, so if you have time please make sure to check out their survey: itβs a direct support to my content creation βΊοΈ
Itβs been almost a year since SwiftData has been released!
And with the upcoming release of iOS 18, itβs becoming more and more realistic for an iOS app to use SwiftData to handle data persistence.
So wouldnβt now be the perfect time to learn the basics of this framework?
Luckily, a few weeks ago Apple has released a great tutorial that covers everything you need to know to start using SwiftData in an iOS app.
Because I was myself curious to learn more about SwiftData, I decided to cover the entire content of the tutorial over a series of livestreams!
And now that this series has been completed, I want to let you know what it can teach you π
Chapter 1 β The Basics
In this first chapter, we go over everything you need to know to:
π How to setup up the data persistence stack
π How to store a simple piece of data
π How to perform basic operations: create, retrieve, update and delete
Chapter 2 β Relationships
Now that we know how to perform basic operations, letβs move on to the more complex topic of managing relationships between pieces of data:
π How to make SwiftData aware that two pieces of data are related
π How to build UIs that allows users to manage that relationship
π How to write advanced queries to filter though the data
And that's it, after these 4 hours of training you should be able to start using SwiftData in your iOS app!
Of course, you wonβt know everything about the framework, but you will know enough to get started and to be able to troubleshoot issues π
Thatβs all for this email, thanks for reading it!
If youβve enjoyed it, feel free to forward it
to your friends and colleagues π
I wish you an amazing week!
β€οΈ