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

struct SettingsProviderView: View {
  @EnvironmentObject var settings: Settings

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