summaryrefslogtreecommitdiff
path: root/Sora/Views/Settings/SettingsSourceView.swift
blob: d1f8f30411ce96e945943c1a95b81e3761c73161 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
import SwiftUI

struct SettingsSourceView: View {
    @EnvironmentObject var settings: Settings

    var body: some View {
        Picker("Booru", selection: $settings.preferredBooru) {
            ForEach(BooruProvider.allCases, id: \.self) { type in
                Text(type.rawValue.capitalized).tag(type)
            }
        }
    }
}