How to use @Observable outside of SwiftUI

Опубликовано: 17 Июнь 2026
на канале: donny wals
1,376
56

This video is a companion for the following blog post: https://www.donnywals.com/observing-p...

Learn how you can explore and use the Observable macro and more specifically how you can observe properties on observable classes using withObservationTracking.

In this video, we take a look at the shortcomings or missing features in with-observation tracking. We take a look at how we could add them. We end up figuring out that withObservationTracking is missing some stuff, and it's really hard to use properly when you have Swift 6 mode enabled.

I share my experience of exploring that and my thoughts. If you're interested in learning more about observable, make sure you check out the two videos below.

   • Comparing @Observable to ObservableObjects...  
   • Binding vs. Bindable in SwiftUI on iOS 17