summaryrefslogtreecommitdiff
path: root/Sora/Views/Settings/SettingsSourceView.swift
diff options
context:
space:
mode:
Diffstat (limited to 'Sora/Views/Settings/SettingsSourceView.swift')
-rw-r--r--Sora/Views/Settings/SettingsSourceView.swift13
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)
+ }
+ }
+ }
+}