mirror of
https://github.com/yattee/yattee.git
synced 2025-08-05 02:04:07 +00:00
Home Settings
This commit is contained in:
@@ -73,6 +73,37 @@ struct ContentView: View {
|
||||
AccountsView()
|
||||
}
|
||||
)
|
||||
.background(
|
||||
EmptyView().sheet(isPresented: $navigation.presentingHomeSettings) {
|
||||
#if os(macOS)
|
||||
VStack(alignment: .leading) {
|
||||
Button("Done") {
|
||||
navigation.presentingHomeSettings = false
|
||||
}
|
||||
.padding()
|
||||
.keyboardShortcut(.cancelAction)
|
||||
|
||||
HomeSettings()
|
||||
}
|
||||
.frame(width: 500, height: 800)
|
||||
#else
|
||||
NavigationView {
|
||||
HomeSettings()
|
||||
#if os(iOS)
|
||||
.toolbar {
|
||||
ToolbarItem(placement: .navigation) {
|
||||
Button {
|
||||
navigation.presentingHomeSettings = false
|
||||
} label: {
|
||||
Text("Done")
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
#endif
|
||||
}
|
||||
)
|
||||
#if !os(tvOS)
|
||||
.fileImporter(
|
||||
isPresented: $navigation.presentingFileImporter,
|
||||
|
Reference in New Issue
Block a user