summaryrefslogtreecommitdiff
path: root/Sora/Views/Settings/SettingsDetailsView.swift
blob: 6b9be8dc4ff4cb8d06c0d66f9d206937122a8878 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
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)
            }
        }
    }
}