So as to add on to workingdog’s reply, navigationDestination’s Kind can solely be used for one path. In case you attempt to begin a brand new navigationDestination route utilizing Int, chances are you’ll find yourself going again to an empty view or get errors.
Additionally in the event you ever have to entry the router from completely different views, you could possibly create an observableObject Router class:
last class Router: ObservableObject {
@Printed var path: NavigationPath = .init()
}