diff options
Diffstat (limited to 'Sora/Views/Settings/SettingsSourceView.swift')
| -rw-r--r-- | Sora/Views/Settings/SettingsSourceView.swift | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/Sora/Views/Settings/SettingsSourceView.swift b/Sora/Views/Settings/SettingsSourceView.swift new file mode 100644 index 0000000..8663290 --- /dev/null +++ b/Sora/Views/Settings/SettingsSourceView.swift @@ -0,0 +1,13 @@ +import SwiftUI + +struct SettingsSourceView: View { + @EnvironmentObject var settings: Settings + + var body: some View { + Picker("Booru", selection: $settings.preferredBooru) { + ForEach(Booru.allCases, id: \.self) { type in + Text(type.rawValue.capitalized).tag(type) + } + } + } +} |