summaryrefslogtreecommitdiff
path: root/Sora/Views/Settings/Section/SettingsSectionSearchView.swift
diff options
context:
space:
mode:
authorFuwn <[email protected]>2025-09-22 02:22:32 -0700
committerFuwn <[email protected]>2025-09-22 02:22:32 -0700
commit1d634eafc0c316e0a88d1e321a9025f1c944686a (patch)
tree673eca151426d0db04ab4cbb3ff10f9ed2a9c8df /Sora/Views/Settings/Section/SettingsSectionSearchView.swift
parentfeat: Development commit (diff)
downloadsora-testing-1d634eafc0c316e0a88d1e321a9025f1c944686a.tar.xz
sora-testing-1d634eafc0c316e0a88d1e321a9025f1c944686a.zip
feat: Development commit
Diffstat (limited to 'Sora/Views/Settings/Section/SettingsSectionSearchView.swift')
-rw-r--r--Sora/Views/Settings/Section/SettingsSectionSearchView.swift18
1 files changed, 18 insertions, 0 deletions
diff --git a/Sora/Views/Settings/Section/SettingsSectionSearchView.swift b/Sora/Views/Settings/Section/SettingsSectionSearchView.swift
new file mode 100644
index 0000000..6249c4a
--- /dev/null
+++ b/Sora/Views/Settings/Section/SettingsSectionSearchView.swift
@@ -0,0 +1,18 @@
+import SwiftUI
+
+struct SettingsSectionSearchView: View {
+ @EnvironmentObject var settings: SettingsManager
+
+ var body: some View {
+ Picker("Suggestion Mode", selection: $settings.searchSuggestionsMode) {
+ ForEach(SettingsSearchSuggestionsMode.allCases, id: \.self) { type in
+ Text(type.rawValue.capitalized).tag(type)
+ }
+ }
+
+ Button("Clear History") {
+ settings.searchHistory.removeAll()
+ }
+ .trailingFrame()
+ }
+}