Improve UI

This commit is contained in:
世界
2024-02-08 10:37:37 +08:00
parent 70d43abd52
commit 1f6e99f576
32 changed files with 1201 additions and 646 deletions
+7 -2
View File
@@ -26,8 +26,10 @@ public struct MainView: View {
NavigationSplitView {
SidebarView()
} detail: {
selection.contentView
.navigationTitle(selection.title)
NavigationStack {
selection.contentView
.navigationTitle(selection.title)
}
}
.onAppear {
environments.postReload()
@@ -55,6 +57,9 @@ public struct MainView: View {
environments.connectLog()
}
}
.onReceive(environments.openSettings) {
selection = .settings
}
.formStyle(.grouped)
.environment(\.selection, $selection)
.environment(\.importProfile, $importProfile)