Improve dashboard

This commit is contained in:
世界
2023-08-02 16:47:07 +08:00
parent b9a7ea4afa
commit 5e0573d15c
24 changed files with 619 additions and 257 deletions
+11 -1
View File
@@ -22,7 +22,17 @@ struct MainView: View {
}
}
} else {
ContentView()
TabView(selection: $selection) {
ForEach(NavigationPage.allCases, id: \.self) { page in
NavigationStackCompat {
page.contentView
.navigationTitle(page.title)
.focusSection()
}
.tag(page)
.tabItem { page.label }
}
}
}
}
.onChangeCompat(of: scenePhase) { newValue in