summaryrefslogtreecommitdiff
path: root/Sora/Views/Settings/SettingsView.swift
diff options
context:
space:
mode:
authorFuwn <[email protected]>2025-02-22 12:26:31 -0800
committerFuwn <[email protected]>2025-02-22 12:26:31 -0800
commitf527ede88d974271a0c485e297ba9278909f53bb (patch)
tree6d6ad0597c80fabe48a1de9981bafa968aaf6e29 /Sora/Views/Settings/SettingsView.swift
parentfeat: Development commit (diff)
downloadsora-testing-f527ede88d974271a0c485e297ba9278909f53bb.tar.xz
sora-testing-f527ede88d974271a0c485e297ba9278909f53bb.zip
feat: Development commit
Diffstat (limited to 'Sora/Views/Settings/SettingsView.swift')
-rw-r--r--Sora/Views/Settings/SettingsView.swift48
1 files changed, 25 insertions, 23 deletions
diff --git a/Sora/Views/Settings/SettingsView.swift b/Sora/Views/Settings/SettingsView.swift
index ab92a42..02f9e34 100644
--- a/Sora/Views/Settings/SettingsView.swift
+++ b/Sora/Views/Settings/SettingsView.swift
@@ -4,37 +4,39 @@ struct SettingsView: View {
@EnvironmentObject var settings: Settings
var body: some View {
- Form {
- Section(header: Text("Provider")) {
- SettingsProviderView()
- }
+ NavigationStack {
+ Form {
+ Section(header: Text("Provider")) {
+ SettingsProviderView()
+ }
- Section(header: Text("Thumbnails")) {
- SettingsThumbnailsView()
- }
+ Section(header: Text("Thumbnails")) {
+ SettingsThumbnailsView()
+ }
- Section(header: Text("Details")) {
- SettingsDetailsView()
- }
+ Section(header: Text("Details")) {
+ SettingsDetailsView()
+ }
- Section(header: Text("Search")) {
- SettingsSearchView()
- }
+ Section(header: Text("Search")) {
+ SettingsSearchView()
+ }
- Section(header: Text("Settings")) {
- Button("Reset to Defaults") {
- settings.resetToDefaults()
+ Section(header: Text("Settings")) {
+ Button("Reset to Defaults") {
+ settings.resetToDefaults()
+ }
}
- }
- Section(header: Text("Attributions")) {
- SettingsAttributionsView()
+ Section(header: Text("Attributions")) {
+ SettingsAttributionsView()
+ }
}
+ #if os(macOS)
+ .formStyle(.grouped)
+ #endif
+ .navigationTitle("Settings")
}
- #if os(macOS)
- .formStyle(.grouped)
- #endif
- .navigationTitle("Settings")
}
}