mirror of
https://github.com/yattee/yattee.git
synced 2025-08-09 20:24:06 +00:00
Documents tab with file sharing
This commit is contained in:
@@ -14,6 +14,7 @@ struct AppTabNavigation: View {
|
||||
@EnvironmentObject<ThumbnailsModel> private var thumbnailsModel
|
||||
|
||||
@Default(.showHome) private var showHome
|
||||
@Default(.showDocuments) private var showDocuments
|
||||
@Default(.showOpenActionsToolbarItem) private var showOpenActionsToolbarItem
|
||||
@Default(.visibleSections) private var visibleSections
|
||||
|
||||
@@ -26,6 +27,10 @@ struct AppTabNavigation: View {
|
||||
homeNavigationView
|
||||
}
|
||||
|
||||
if showDocuments {
|
||||
documentsNavigationView
|
||||
}
|
||||
|
||||
if !accounts.isEmpty {
|
||||
if subscriptionsVisible {
|
||||
subscriptionsNavigationView
|
||||
@@ -73,6 +78,18 @@ struct AppTabNavigation: View {
|
||||
.tag(TabSelection.home)
|
||||
}
|
||||
|
||||
private var documentsNavigationView: some View {
|
||||
NavigationView {
|
||||
LazyView(DocumentsView())
|
||||
.toolbar { toolbarContent }
|
||||
}
|
||||
.tabItem {
|
||||
Label("Documents", systemImage: "folder")
|
||||
.accessibility(label: Text("Documents"))
|
||||
}
|
||||
.tag(TabSelection.documents)
|
||||
}
|
||||
|
||||
private var subscriptionsNavigationView: some View {
|
||||
NavigationView {
|
||||
LazyView(SubscriptionsView())
|
||||
|
Reference in New Issue
Block a user