Improve UI
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user