Show only one tab

This commit is contained in:
Jackson Harper 2023-07-05 15:00:52 -07:00
parent cf82f05a93
commit f3bc4ba054
2 changed files with 30 additions and 17 deletions

View file

@ -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()
}
}

View file

@ -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)