SwiftUI: The UnsafeObservedObject Quiz
Do you know when it’s safe to use ObservedObject? Are you sure?
Published in
8 min readApr 2, 2023
I’m seeing a lot more SwiftUI code recently, and that’s great!
But I’m also seeing a lot of code online in projects and in PRs that tells me quite a few people still don’t understand the difference between ObservedObject
and StateObject
. Or when it’s safe to use…