diff options
| author | Fuwn <[email protected]> | 2025-09-22 02:22:32 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2025-09-22 02:22:32 -0700 |
| commit | 1d634eafc0c316e0a88d1e321a9025f1c944686a (patch) | |
| tree | 673eca151426d0db04ab4cbb3ff10f9ed2a9c8df /Sora/Views/Settings/Section/SettingsSectionSettingsView.swift | |
| parent | feat: Development commit (diff) | |
| download | sora-testing-1d634eafc0c316e0a88d1e321a9025f1c944686a.tar.xz sora-testing-1d634eafc0c316e0a88d1e321a9025f1c944686a.zip | |
feat: Development commit
Diffstat (limited to 'Sora/Views/Settings/Section/SettingsSectionSettingsView.swift')
| -rw-r--r-- | Sora/Views/Settings/Section/SettingsSectionSettingsView.swift | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/Sora/Views/Settings/Section/SettingsSectionSettingsView.swift b/Sora/Views/Settings/Section/SettingsSectionSettingsView.swift new file mode 100644 index 0000000..273cc82 --- /dev/null +++ b/Sora/Views/Settings/Section/SettingsSectionSettingsView.swift @@ -0,0 +1,22 @@ +import SwiftUI + +struct SettingsSectionSettingsView: View { + @EnvironmentObject var settings: SettingsManager + + var body: some View { + Toggle(isOn: $settings.enableSync) { + Text("Sync with iCloud") + + Text("Keep bookmarks, search history, and providers consistent across all your devices.") + .font(.caption) + } + .onChange(of: settings.enableSync) { _, _ in + settings.triggerSyncIfNeededForAll() + } + + Button("Reset to Defaults") { + settings.resetToDefaults() + } + .trailingFrame() + } +} |