How to follow this quick start guide
How to follow this quick start guide êŽë š
Updated for Xcode 15
This guide is called SwiftData by Example, because it focuses particularly on providing as many examples as possible, with each one solving real problems youâll face every day.
I have tried to structure this so that most entries starts with âHow toâŠâ because this is about giving you hands-on code you can use in your own projects immediately. That also means Iâve tried to get to the point as fast as possible and stay there, so if youâre looking for a longer, slower introduction to SwiftData Iâm afraid this isnât it.
Already got some experience?
If youâve already grabbed the basics of SwiftData and just want code that solves your problems, by all means just jump in wherever interests you.
My code examples are specifically written for folks who are following along more or less linearly, so if you want to make changes you may need to do a little light editing to make it fit your code.
Just starting out?
If youâre just starting out with SwiftData you should start by completing the initial sample project, then just skip around based on what interests you.
I would recommend against using Xcode's SwiftData template. It doesnât add a great deal of helpful code, and youâll just need to replace it with your own code anyway.