In order to watch this lesson, you'll need to purchase this course. Once you make your purchase, you'll have access to this course and all future updates for the rest of time.
In order to view this lesson, you must purchase this course.
ObservableObject
1. Declare object as ObservableObject
2. Use @Published for all UI properties
3. Use @MainActor where appropriate
@Observable Macro
1. Use @Observable, no need to declare ObservableObject
2. Don't mark properties as @Published
3. Use @State instead of @StateObject and @ObservedObject
4. Don't use @MainActor
5. Smarter view refreshes
6. No easy access to publishers for .sink custom logic