From f3bc4ba0542292a324b9a30462c9f0dcaa918242 Mon Sep 17 00:00:00 2001 From: Jackson Harper Date: Wed, 5 Jul 2023 15:00:52 -0700 Subject: [PATCH] Show only one tab --- .../App/Views/Home/HighlightsListView.swift | 13 +++++++ .../Sources/App/Views/LibraryTabView.swift | 34 +++++++++---------- 2 files changed, 30 insertions(+), 17 deletions(-) create mode 100644 apple/OmnivoreKit/Sources/App/Views/Home/HighlightsListView.swift diff --git a/apple/OmnivoreKit/Sources/App/Views/Home/HighlightsListView.swift b/apple/OmnivoreKit/Sources/App/Views/Home/HighlightsListView.swift new file mode 100644 index 000000000..2476854aa --- /dev/null +++ b/apple/OmnivoreKit/Sources/App/Views/Home/HighlightsListView.swift @@ -0,0 +1,13 @@ +import CoreData +import Models +import Services +import SwiftUI +import UserNotifications +import Utils +import Views + +struct HighlightsListView: View { + var body: some View { + EmptyView() + } +} diff --git a/apple/OmnivoreKit/Sources/App/Views/LibraryTabView.swift b/apple/OmnivoreKit/Sources/App/Views/LibraryTabView.swift index 530b8c25a..852042117 100644 --- a/apple/OmnivoreKit/Sources/App/Views/LibraryTabView.swift +++ b/apple/OmnivoreKit/Sources/App/Views/LibraryTabView.swift @@ -46,7 +46,7 @@ struct LibraryTabView: View { ) { EmptyView() } - TabView { +// TabView { // HomeView(viewModel: subViewModel) // .tabItem { // Label { @@ -55,23 +55,23 @@ struct LibraryTabView: View { // Image.tabSubscriptions // } // } - HomeView(viewModel: libraryViewModel) - .tabItem { - Label { - Text("Library") - } icon: { - Image.tabLibrary - } + HomeView(viewModel: libraryViewModel) + .tabItem { + Label { + Text("Library") + } icon: { + Image.tabLibrary } - HomeView(viewModel: highlightsViewModel) - .tabItem { - Label { - Text("Highlights") - } icon: { - Image.tabHighlights - } - } - }.ignoresSafeArea() + } +// HomeView(viewModel: highlightsViewModel) +// .tabItem { +// Label { +// Text("Highlights") +// } icon: { +// Image.tabHighlights +// } +// } +// } } } .navigationViewStyle(.stack)