mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Show only one tab
This commit is contained in:
parent
cf82f05a93
commit
f3bc4ba054
2 changed files with 30 additions and 17 deletions
|
|
@ -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()
|
||||
}
|
||||
}
|
||||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue