From 0d186e3d441e03492c36ff2f068f76b0fb11e7fb Mon Sep 17 00:00:00 2001 From: Jackson Harper Date: Mon, 24 Jul 2023 15:20:45 +0800 Subject: [PATCH] Remove double navigation stack --- .../Sources/App/Views/LibraryTabView.swift | 20 ++++++++----------- 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/apple/OmnivoreKit/Sources/App/Views/LibraryTabView.swift b/apple/OmnivoreKit/Sources/App/Views/LibraryTabView.swift index d3464ac0a..9fb7b1745 100644 --- a/apple/OmnivoreKit/Sources/App/Views/LibraryTabView.swift +++ b/apple/OmnivoreKit/Sources/App/Views/LibraryTabView.swift @@ -43,14 +43,13 @@ struct LibraryTabView: View { ) var body: some View { - NavigationView { - ZStack { - NavigationLink( - destination: LinkDestination(selectedItem: libraryViewModel.selectedItem), - isActive: $libraryViewModel.linkIsActive - ) { - EmptyView() - } + ZStack { + NavigationLink( + destination: LinkDestination(selectedItem: libraryViewModel.selectedItem), + isActive: $libraryViewModel.linkIsActive + ) { + EmptyView() + } // TabView(selection: $selection) { // BriefingView( // articleId: "98e017a3-79d5-4049-97bc-ff170153792a" @@ -63,7 +62,7 @@ struct LibraryTabView: View { // } // }.tag(0) - HomeView(viewModel: libraryViewModel) + HomeView(viewModel: libraryViewModel) // .tabItem { // Label { // Text("Library") @@ -81,9 +80,6 @@ struct LibraryTabView: View { // } // }.tag(2) // } - } } - .navigationViewStyle(.stack) - .navigationBarTitleDisplayMode(.inline) } }