Replies: 1 comment 1 reply
-
There probably is a way to implement this, but I'm too busy at the moment to dive into it. PRs are always welcome if you want to take a crack at it. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi @davdroman,
I know you already answered this in Question 73 (different transitions per subview).
This lib doesn't support that.
Bummer.
Please, compare the situation to a book or article - you don't write the whole text in Comic Sans, but only a single line, to make it stand out.
The same applies to fancy transitions - you don't want them in your whole app, but only for this one special view.
I never would want to apply
.navigationTransition()
to theNavigationView
(or -Stack) itself, but only to a single (or maybe a few)NavigationLink()
anddismiss()
calls.If you support this, I'm sure way more developers would consider using this lib. I would...
The problem I need to solve is, that in standard SwiftUI (iOS 16ff) you can change the transition of a
NavigationView
push individually in theNavigationLink
trigger (in my case disable the transition completely, just jump to the next view) like this:but if you try the same for
dismiss()
, SwiftUI doesn't obey thetransaction.disablesAnimations
and runs the usual slide back transition. I triedwithTransaction(nil)
, or defined a transaction with a duration of 0.001 - didn't work, it always slides back. Asked Apple dts for help, got no answer... Guess they are too busy fixing iOS 26.You do support a nothing transition which would solve my problem, but only if I can apply that to individual
NavigationLink()
anddismiss()
calls instead of to the whole NavigationView.Maybe a global variable would work for me to either use the standard iOS tableView / stack transition or
nothing
?Beta Was this translation helpful? Give feedback.
All reactions