Open MaxDesiatov opened 4 years ago
Yeah that'd be nice. It would probably need to use the isActive
binding on NavigationLink
to activate the routes.
Ok, so I've got it somewhat working with 1a896c5.
That added a new routerLinkStyle
modifier and RouterLinkStyle
type. There are ButtonRouterLinkStyle
, LinkButtonRouterLinkStyle
, and NavigationLinkRouterLinkStyle
.
I'm not sure how this would work yet, but it would be great if the router either supported the native
NavigationView
andNavigationLink
types or introduced newRoutableNavigation
andRoutableLink
(names to bikeshed) types that behaved in a similar way with support forNavigationView
layout and transitions. Maybe it is supported already? I haven't had a chance to explore the source code yet, feel free to close this then.