Neil Macy

SwiftUI State Links

I've been playing around with SwiftUI recently. It's been fun to learn in many ways, but managing state is one of the more confusing aspects of it.

There are many property wrappers for managing state in SwiftUI. When do you use @State, @ObservedObject, @EnvironmentObject etc?

Here are a few links to blog posts that can explain it pretty well:

Published on 25 January 2022