-
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
Question: How to change transition of the view which was already pushed into nav stack #32
Comments
Hi @cuhte3 I'd really like to get what you need, I often need it myself. This question is kind of related to this other one #17 , so I'll close this to keep the conversation on a single thread. Long story short: at the moment what you're asking is not possible. The navigation stack just allows you to specify a transition animation during its creation. We need to find a way to change the navigation stack to include this feature. It seems easy and I tried it, but unfortunately I failed and I haven't had time to try again with other possible solutions. Of course, any help on this would be really really appreciated. Let's keep talking about this on the other issue I linked here above and thank you. |
Hi @matteopuc, in iOS14 now we have a .fullScreenCover modifier which seems a suitable solution for the issue. I've extended NavigationType adding a .present as well as extending NavigationStack with present function to support the new type of navigation. Here is my modified NavigationStackView body as an example:
this works however somehow transition of the modal view isn't animated. Any ideas of how to make the transition animatable? |
First of all thanks for the great library! Am trying to figure out how to achieve different transitions on a view which was already pushed to the stack. Let's say i pushed a view with a default transition and on the view there are two buttons: one is leading to the next screen with a default transition but the other is showing a view over the current like a popover. Because the host view is already pushed to the stack with defined push and pop transition i cannot see a way how to modify it for my needs. Any ideas are appreciated! Thanks!
The text was updated successfully, but these errors were encountered: