-
Notifications
You must be signed in to change notification settings - Fork 87
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fatal error: No ObservableObject of type NavigationStack found. #13
Comments
Hi @blainesolomon, thanks for asking. Your question is actually very interesting. In SwiftUI a modal view (presented with the
That
The result is: If you want, instead, to use the
and you "push" with the standard
In this case you'll be able to push view from the child view on, but you won't be able to come back with the Matteo |
@matteopuc @blainesolomon
After that it works perfectly fine 🙂 |
Open curiosity: Is there a way to use this inside of a modal or nav view? (Works well otherwise)
If I attempt either, I get the following error:
Fatal error: No ObservableObject of type NavigationStack found.
I'm down to try anything as a potential workaround
The text was updated successfully, but these errors were encountered: