In this course, you'll master data management and persistence in iOS 17+ using Swift, SwiftUI, and SwiftData. You will start with the basics of creating views and managing state with @State, @Binding, and @EnvironmentObject. As you progress, you'll learn to define data models and schemas, implement CRUD operations, and manage related data. Advanced topics include data migrations for managing data models. Through hands-on exercises and real-world examples, you'll build several data-driven iOS applications.
Overview
Syllabus
- State Management in iOS
- Master basic iOS state management and data persistence: Understand @State, @Observable, data structures, UI updates, and persisting data.
- Data Persistence with SwiftData
- Dive into the essentials of SwiftData for iOS, learning about model management, data operations, queries, and optimizing data persistence strategies.
- SwiftData Model Relationships
- Explore SwiftData's model relationships, including one-to-one, one-to-many, and many-to-many relationships, and learn to create, query, and delete related data.
- SwiftData Schema Updates and Migration
- Explore SwiftData database migrations, schema updates, and how to manage data model changes without losing data through practical examples.
- SwiftBites
- Build "SwiftBites," a SwiftUI app using SwiftData to manage recipes. Show your mastery of CRUD operations, data models, queries, and relationships by creating, categorizing, and searching recipes.
Taught by
Valerie Scarlata