SwiftData - SwiftUI 的声明式数据持久性
SwiftData - Declarative Data Persistence for SwiftUI
- 01 - Introduction
- 001 Introduction
- 002 Prerequisites
- 003 Exercise Files
- 02 - SwiftUI State Management Updates
- 001 What has changed
- 002 @State
- 003 @Bindable
- 004 @Environment
- 03 - Getting Started with SwiftData
- 001 Saving a Movie
- 002 Fetching and Displaying Movies
- 003 Debugging SwiftData
- 004 Deleting a Movie
- 005 Updating a Movie
- 04 - One-to-Many Relationship
- 002 Understanding One-to-Many Relationship
- 003 Adding Review Model and Configuring Relationship
- 004 Saving Review
- 006 Displaying all Reviews for a Movie
- 007 Deleting Review
- 008 FIX Deleting Review
- 05 - Many-to-Many Relationship
- 001 Understanding Many-to-Many Relationship
- 002 Adding Actor Model and Configuring Relationship
- 003 Saving a New Actor
- 004 Displaying All Actors
- 005 Selecting Actors When Adding a New Movie
- 006 Displaying Actors for a Movie
- 007 Allowing Existing Actors to Select their Movies
- 06 - Understanding Queries
- 002 Understanding @Query Property Wrapper
- 003 Implementing Enum Based Sheets
- 004 Creating the User Interface to Support Filter Screen
- 005 Filter by Movie Title
- 007 Using @Transient Macro to Display Actors and Reviews Count for a Movie
- 008 Filter by Reviews Count
- 009 Filter by Actors Count
- 07 - VersioningMigrations
- 001 What is Versioning
- 003 Custom Migration (Unique Constraint on Movie Names)
- 004 Lightweight Migration (Changing Property Names)
- 08 - Persisting Genre and Performing Filters Based by Genre
- 001 Understanding the Starter Project
- 002 Implementing Genre Model
- 003 Saving Genre
- 004 Filtering Movies Based on Genre (Discovering Issues with Genre Enum)
- 005 Filtering Movies Based on Genre (Using GenreId for Filter)
- 006 Filtering Movies and Persisting State of the Filters
- 09 - Persisting and Displaying Transformable Properties in SwiftData
- 001 What we will be building
- 002 Implementing the Room Model
- 003 Implementing UIColorTransformer
- 004 Setting Up User Interface (ColorSelector)
- 005 Persisting Room Using SwiftData
- 006 Displaying All Rooms
- 14 - Integrating SwiftData with UIKit Applications
- 001 Apple's Documentation on Using Non SwiftUI Framework
- 002 Tour of the Starter Project
- 003 Setting Up the Model Container
- 004 Adding a New Todo Item
- 005 Displaying Todo Items