summaryrefslogtreecommitdiff
path: root/Sora/Views/SettingsView.swift
diff options
context:
space:
mode:
Diffstat (limited to 'Sora/Views/SettingsView.swift')
-rw-r--r--Sora/Views/SettingsView.swift70
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())
}