Closed jmcguiresignifyhealth closed 3 months ago
Thanks for reporting this!
Hi @jmcguiresignifyhealth,
You are clearing the destinations and cleaning up the navigation state when the view/route is disposed:
navigationController?.clearDestinations();
navigationController?.cleanup();
As a result, the navigation state is cleared each time the Route is disposed.
I checked the behavior with a modified example app, and found that the NavigationView is automatically attached to the active navigation session if there is one initialized as it should.
I suggest moving the navigation handling outside of the Route to maintain a global navigation state. Note that navigation can be initialized even without the NavigationView.
Closing this issue.
Environment details
OS: iOS 17.4 Simulator SDK Version: 0.4.0
Steps to reproduce
<NavigationView />
and usenavigationController.setDestination
to add a destinationhttps://github.com/user-attachments/assets/1b7bf1f6-f23a-4875-990c-e2ceaaabbbf6
Code example