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

struct SettingsDetailsView: View {
  @EnvironmentObject var settings: Settings

  var body: some View {
    Picker("Detail View Type", selection: $settings.detailViewType) {
      ForEach(BooruPostFileType.allCases, id: \.self) { type in
        Text(type.rawValue.capitalized).tag(type)
      }
    }

    Toggle("Enable \"Share Image\" Shortcut", isOn: $settings.enableShareShortcut)
  }
}