summaryrefslogtreecommitdiff
path: root/Sora/Views/Settings/Section/SettingsDetailsView.swift
blob: 46072e63e819160121a8c4fb3a4d254c0380d5af (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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)

    Toggle("Display Tags", isOn: $settings.displayTags)

    #if os(macOS)
      Toggle("Save Tags to File During Download", isOn: $settings.saveTagsToFile)
    #endif
  }
}