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) } } } }