diff options
Diffstat (limited to 'Hutch/App/RootView.swift')
| -rw-r--r-- | Hutch/App/RootView.swift | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Hutch/App/RootView.swift b/Hutch/App/RootView.swift index f65bced..b4cf3bd 100644 --- a/Hutch/App/RootView.swift +++ b/Hutch/App/RootView.swift @@ -69,6 +69,12 @@ struct RootView: View { return TabView(selection: $appState.selectedTab) { NavigationStack(path: $homePath) { HomeView() + .navigationDestination(for: HomeRoute.self) { route in + switch route { + case .work: + WorkView() + } + } } .tag(AppState.Tab.home) .tabItem { @@ -196,6 +202,14 @@ struct RootView: View { case .ticket(let owner, let tracker, let ticketId): resolveTicketLink(owner: owner, tracker: tracker, ticketId: ticketId) + case .work: + homePath = NavigationPath() + appState.selectedTab = .home + Task { + await settleNavigationTransition() + homePath.append(HomeRoute.work) + } + case .buildsTab: buildsPath = NavigationPath() appState.selectedTab = .builds |
