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/SettingsSectionSearchView.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/SettingsSectionSearchView.swift')
| -rw-r--r-- | Sora/Views/Settings/Section/SettingsSectionSearchView.swift | 18 |
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() + } +} |