Replies: 1 comment 6 replies
-
@eiskalt Can you provide a full example? You could even zip up a project and attach it here. You might also want to check out the demos here: https://github.com/pointfreeco/swiftui-navigation/tree/7a61fb419997f56bd9928c7b405fc7557a60d4bd/Examples Both the Inventory app and Case Studies include uses of |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This is more of a general question before I raise an issue.
According to the documentation for
onNavigate
it statesA closure that executes when the link becomes active or inactive with a boolean that describes if the link was activated or not.
.I have been unable to get
onNavigate
to execute on any active when changing the route value (even though the navigation does occur) and the closure boolean has never been true.Example:
NavigationLink(unwrapping: $route, case: /Route.a) { ... } onNavigate: { isActive in print("This is never called on activation and isActive has never been true") } ...
Note: It works fine when navigating back and the boolean is false as according to: #10
Beta Was this translation helpful? Give feedback.
All reactions