diff options
| author | Fuwn <[email protected]> | 2025-02-22 00:07:44 -0800 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2025-02-22 00:07:44 -0800 |
| commit | e42fa12dafe264c665d2574c93b54ddafe7f2e1f (patch) | |
| tree | a362b3b78ea97dc28ce5cc3682801bf89688f546 /Sora/Views/SettingsView.swift | |
| parent | feat: Development commit (diff) | |
| download | sora-testing-e42fa12dafe264c665d2574c93b54ddafe7f2e1f.tar.xz sora-testing-e42fa12dafe264c665d2574c93b54ddafe7f2e1f.zip | |
feat: Development commit
Diffstat (limited to 'Sora/Views/SettingsView.swift')
| -rw-r--r-- | Sora/Views/SettingsView.swift | 70 |
1 files changed, 35 insertions, 35 deletions
diff --git a/Sora/Views/SettingsView.swift b/Sora/Views/SettingsView.swift index a4a37ae..ab92a42 100644 --- a/Sora/Views/SettingsView.swift +++ b/Sora/Views/SettingsView.swift @@ -1,44 +1,44 @@ import SwiftUI struct SettingsView: View { - @EnvironmentObject var settings: Settings - - var body: some View { - Form { - Section(header: Text("Provider")) { - SettingsProviderView() - } - - Section(header: Text("Thumbnails")) { - SettingsThumbnailsView() - } - - Section(header: Text("Details")) { - SettingsDetailsView() - } - - Section(header: Text("Search")) { - SettingsSearchView() - } - - Section(header: Text("Settings")) { - Button("Reset to Defaults") { - settings.resetToDefaults() - } - } - - Section(header: Text("Attributions")) { - SettingsAttributionsView() - } + @EnvironmentObject var settings: Settings + + var body: some View { + Form { + Section(header: Text("Provider")) { + SettingsProviderView() + } + + Section(header: Text("Thumbnails")) { + SettingsThumbnailsView() + } + + Section(header: Text("Details")) { + SettingsDetailsView() + } + + Section(header: Text("Search")) { + SettingsSearchView() + } + + Section(header: Text("Settings")) { + Button("Reset to Defaults") { + settings.resetToDefaults() } - #if os(macOS) - .formStyle(.grouped) - #endif - .navigationTitle("Settings") + } + + Section(header: Text("Attributions")) { + SettingsAttributionsView() + } } + #if os(macOS) + .formStyle(.grouped) + #endif + .navigationTitle("Settings") + } } #Preview { - SettingsView() - .environmentObject(Settings()) + SettingsView() + .environmentObject(Settings()) } |