SwiftData by Example is out now, online free for everyone or available for purchase as a download edition! So many questions answered and common problems solved, with more to come as the book grows in the future. Start reading here: https://www.hackingwithswift.com/quick-start/swiftdata
SwiftData by Example - free quick start tutorials for Swift developers

Get hands-on example code to help you learn important Apple frameworks faster.

Hacking with Swift

I’ve recorded a video version of the tutorial project, which will land on YouTube later today for folks who prefer watching to reading.

As this is the first edition of the book there’ll be quite a few typos and mistakes – let me know when you spot one and I’ll get it fixed! 🙌

In the meantime, check out the bottom of the dedication page for a video of me watching the Platforms State of the Union at WWDC23. I was just a ~bit~ happy to see SwiftData being announced 😅 https://www.hackingwithswift.com/quick-start/swiftdata/dedication
Dedication - a free SwiftData by Example tutorial

Learn Swift coding for iOS with these free tutorials

Hacking with Swift
💥 Boom! My 8-part SwiftData starter tutorial is now on YouTube, walking you through the fundamentals of your first SwiftData app with SwiftUI. Models, queries, sorting, filtering, relationships, and more – start here: https://youtu.be/FEKCAzPAtpg
Introduction – SwiftData Starter Project 1/8

YouTube
@twostraws is the code for this tutorial generally available on github or something similarly accessible? I learn best by playing with code. If not, I’ll just go through the tutorial and build up the codebase, but wanted to check if that’s an option before I spend the time.
GitHub - twostraws/iTour: Source code for my SwiftData introduction tutorial.

Source code for my SwiftData introduction tutorial. - GitHub - twostraws/iTour: Source code for my SwiftData introduction tutorial.

GitHub
@twostraws thanks so much Paul! I’m up early here in Southern California to start watching 📺. I’ve already started modifying my app for SwiftData. Was looking forward to this as help to push me along! One question, does your material cover the situation of checking for and converting a user’s pre-existing @AppStorage local data into SwiftData + CloudKit when they first launch a new iOS 17 SwiftData version of an app? I’ve got both that situation to handle as well as pre-loading some static model data at first launch. Thanks so much for all you do!
@twostraws
Hi Paul. Any input on my earlier toot question? Thanks!
@twostraws CoreDta was based on Enterprise Objects Framework, which grew from DBKit and some work NeXT team came and saw at PanCanadian Petroleum in 1994 done by a team I worked with from Object Systems Group. A long line of great work inspired by many, many people. Great work to get us to today.
@twostraws you’ve got a “such as they’re to do lists” in the “what is swift data” section.

@twostraws I’m excited to dive in! Thanks so much for putting this together!

While I was eagerly skimming the contents, I noticed, what I assume is, a word missing (“write”) in the unit tests title under the Architecture section.

@twostraws do you know if you can use SwiftData with CloudKit on a CommandLine Tool target? It doesn’t have access to iCloud capability but I was wondering whether there’s a workaround for this?
@twostraws Thank you for your book. It’s really something that was missing. I have a question for you: when you talk about working on a background context, you never mention the ModelActor protocol. Is that because it suffers the same “extra actor synchronization" issue you mention?
@twostraws Thank-you, Paul! This looks incredible, and will be very helpful as a resource for myself and my senior CS students this year.