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