summaryrefslogtreecommitdiff
path: root/Sora/Views/Settings/SettingsSourceView.swift
blob: 8663290fce122ddb2b9fc00351163bf6b2f3f691 (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(Booru.allCases, id: \.self) { type in
                Text(type.rawValue.capitalized).tag(type)
            }
        }
    }
}