Media
SwiftUI: New Observation Framework
This new approach for observing changes in SwiftUI significantly simplifies your code.

In the last two videos, I was talking about SwiftUI’s issues with redrawing views. In this video, I’m exploring the new Observation framework, which is a part of the new iOS 17 SwiftUI update. This new approach for observing changes in SwiftUI significantly simplifies your code. Now we basically just have the new State wrapper, Environment, and Bindable. In this video, I will show you how to use it and what has changed.
Contents:
- 00:00 Intro
- 00:27 Current state of observation
- 01:32 New @ Observable
- 02:10 State, Bindable, Environment
- 02:22 Default observation wrapper
- 02:34 @ State
- 04:06 @ Bindable
- 05:57 @ Environment
- 07:10 Nested observables issue
- 08:05 Outro
