diff options
| author | Fuwn <[email protected]> | 2025-02-18 23:39:51 -0800 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2025-02-19 00:00:29 -0800 |
| commit | 320ce31337ed60cae24a0374fa2d6d79237a6bfe (patch) | |
| tree | ad1e93799efeb8e7a16521e3ab958c911f73f617 /Sora/Views/Settings/SettingsSearchView.swift | |
| parent | feat: Initial commit (diff) | |
| download | sora-testing-320ce31337ed60cae24a0374fa2d6d79237a6bfe.tar.xz sora-testing-320ce31337ed60cae24a0374fa2d6d79237a6bfe.zip | |
feat: Development commit
Diffstat (limited to 'Sora/Views/Settings/SettingsSearchView.swift')
| -rw-r--r-- | Sora/Views/Settings/SettingsSearchView.swift | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/Sora/Views/Settings/SettingsSearchView.swift b/Sora/Views/Settings/SettingsSearchView.swift new file mode 100644 index 0000000..c1f1baa --- /dev/null +++ b/Sora/Views/Settings/SettingsSearchView.swift @@ -0,0 +1,22 @@ +import SwiftUI + +struct SettingsSearchView: View { + @EnvironmentObject var settings: Settings + + var body: some View { + #if os(macOS) + Text("Search") + .font(.headline) + + HStack { + Text("Suggest Search Tags") + + Spacer() + + Toggle("", isOn: $settings.searchSuggestions) + } + #else + Toggle("Suggest Search Tags", isOn: $settings.searchSuggestions) + #endif + } +} |