diff options
Diffstat (limited to 'Sora/Views/Settings/SettingsView.swift')
| -rw-r--r-- | Sora/Views/Settings/SettingsView.swift | 48 |
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") } } |