Michael Long
Dec 10, 2024

--

It's related to Coordinator, but a Coordinator is usually also responsible for constructing the destinations in question, which in turn means that it--and not the call site--is the only entity that's aware of the view's dependencies and requirements.

This solution requires that knowledge in each and every call site.

And that leads to the drawbacks I mentioned. Not being able to use NavigationLink(value:) is a biggy.

--

--

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.

No responses yet