Explore Library
Quiz

State Ownership & Navigation in SwiftUI

Learn which property wrapper owns shared app state that survives navigation and view redraws.

In a SwiftUI app using MVVM, a view model must be created once, own the source of truth, and survive parent view re-renders while being passed to child screens pushed via NavigationStack. Which property wrapper should the owning view use to hold that view model?