summaryrefslogtreecommitdiff
path: root/Sora/Views/Settings/Section/SettingsSettingsView.swift
diff options
context:
space:
mode:
authorFuwn <[email protected]>2025-03-15 22:19:01 -0700
committerFuwn <[email protected]>2025-03-15 22:19:01 -0700
commit808f34a5ac6e63f6a1abeeb98c03e625caa23cae (patch)
treea737d81d7ee343f26e41c2d47372606110976d2e /Sora/Views/Settings/Section/SettingsSettingsView.swift
parentfeat: Development commit (diff)
downloadsora-testing-808f34a5ac6e63f6a1abeeb98c03e625caa23cae.tar.xz
sora-testing-808f34a5ac6e63f6a1abeeb98c03e625caa23cae.zip
feat: Development commit
Diffstat (limited to 'Sora/Views/Settings/Section/SettingsSettingsView.swift')
-rw-r--r--Sora/Views/Settings/Section/SettingsSettingsView.swift10
1 files changed, 10 insertions, 0 deletions
diff --git a/Sora/Views/Settings/Section/SettingsSettingsView.swift b/Sora/Views/Settings/Section/SettingsSettingsView.swift
index 404d252..8062a90 100644
--- a/Sora/Views/Settings/Section/SettingsSettingsView.swift
+++ b/Sora/Views/Settings/Section/SettingsSettingsView.swift
@@ -4,6 +4,16 @@ struct SettingsSettingsView: View {
@EnvironmentObject var settings: SettingsManager
var body: some View {
+ Toggle(isOn: $settings.enableICloudSync) {
+ Text("Sync with iCloud")
+
+ Text("Keep bookmarks, search history, and providers up to date on all your devices.")
+ .font(.caption)
+ }
+ .onChange(of: settings.enableICloudSync) { _, _ in
+ settings.syncToICloud()
+ }
+
Button("Reset to Defaults") {
settings.resetToDefaults()
}