Diploma in Apple Development 🍎👩🏻‍💻: Coding One: Lecture 11: Swift Data
Back to slide index.
👋🏻 Hi!
First, don't forget to confirm your attendance using the Seats Mobile app!
Second, I'm going to start every lecture with a meditation from the fantastic Sitting Still Like a Frog book, all read by Myla Kabat-Zinn. If you don't want to participate that's completely fine.
To start, let's watch a WWDC video:
"Meet SwiftData" (10 mins)
"SwiftData is a powerful and expressive persistence framework built for Swift. We'll show you how you can model your data directly from Swift code, use SwiftData to work with your models, and integrate with SwiftUI."
Let's watch another WWDC video:
"Build an app with SwiftData" (19 mins)
"Discover how SwiftData can help you persist data in your app. Code along with us as we bring SwiftData to a multi-platform SwiftUI app. Learn how to convert existing model classes into SwiftData models, set up the environment, reflect model layer changes in UI, and build document-based applications backed by SwiftData storage."
Let's watch another WWDC video:
"Model your schema with SwiftData" (10 mins)
"Learn how to use schema macros and migration plans with SwiftData to build more complex features for your app. We'll show you how to fine-tune your persistence with @Attribute and @Relationship options. Learn how to exclude properties from your data model with @Transient and migrate from one version of your schema to the next with ease."
Let's watch another WWDC video:
"Dive deeper into SwiftData" (16 mins)
"Learn how you can harness the power of SwiftData in your app. Find out how ModelContext and ModelContainer work together to persist your app's data. We'll show you how to track and make your changes manually and use SwiftData at scale with FetchDescriptor, SortDescriptor, and enumerate."
Together, let's continue Apple's Develop in Swift Tutorials - moving onto: Welcome to data modeling, before continuing with Save data and finishing with Wrap-up: Models and persistence.
Together, let's continue Apple's Develop in Swift Tutorials - moving onto: Create, update, and delete data, before finishing with Wrap up: Data editing and navigation.
Together, let's continue Apple's Develop in Swift Tutorials - moving onto: Work with relationships, before finishing with Wrap-up: Relationships and queries.
Homework:
  1. Review today's content.
  2. Slack me with any problems or queries. See you on Friday for the next Spatial lecture, the next ML lecture is first, on Thursday from 0930.
Thanks!
Back to slide index.