Michael Long
May 2, 2024

--

Should update this article. It's OLD.

StateObject fixes some of the issues. Should never pass an initialized view model as a parameter anyway. VMs should be private to the view.

And NavigationStack/,navigationDestination also changes the calculus.

--

--

Michael Long
Michael Long

Written by Michael Long

I write about Apple, Swift, and SwiftUI in particular, and technology in general. I'm also a Lead iOS Engineer at InRhythm, a modern digital consulting firm.

Responses (1)