Rasmus Grouleff (he/him)<p>Once again I have stumbled onto something I don’t understand.</p><p>In the entry point for my app I set a NavigationContext in the environment, and when I run the app and navigate between views, at some random point, it throws the error in the second image, and the debugger indicates it is on the “struct FooApp: App {“ line.</p><p>What is going on? Help!</p><p>In the subviews I am accessing the context from the env like so: “@ Environment(NavigationContext.self) var context”.</p><p><a href="https://mstdn.social/tags/Swift" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Swift</span></a> <a href="https://mstdn.social/tags/SwiftUI" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>SwiftUI</span></a> <a href="https://mstdn.social/tags/SwiftLang" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>SwiftLang</span></a></p>