summaryrefslogtreecommitdiff
path: root/Sora/Views/Settings/SettingsDetailsView.swift
diff options
context:
space:
mode:
Diffstat (limited to 'Sora/Views/Settings/SettingsDetailsView.swift')
-rw-r--r--Sora/Views/Settings/SettingsDetailsView.swift26
1 files changed, 4 insertions, 22 deletions
diff --git a/Sora/Views/Settings/SettingsDetailsView.swift b/Sora/Views/Settings/SettingsDetailsView.swift
index 29b9e76..4ac784c 100644
--- a/Sora/Views/Settings/SettingsDetailsView.swift
+++ b/Sora/Views/Settings/SettingsDetailsView.swift
@@ -4,28 +4,10 @@ struct SettingsDetailsView: View {
@EnvironmentObject var settings: Settings
var body: some View {
- #if os(macOS)
- Text("Details")
- .font(.headline)
-
- HStack {
- Text("Detail View Type")
-
- Spacer()
-
- Picker("", selection: $settings.detailViewType) {
- ForEach(PostFileType.allCases, id: \.self) { type in
- Text(type.rawValue.capitalized).tag(type)
- }
- }
- .frame(width: 150)
- }
- #else
- Picker("Detail View Type", selection: $settings.detailViewType) {
- ForEach(PostFileType.allCases, id: \.self) { type in
- Text(type.rawValue.capitalized).tag(type)
- }
+ Picker("Detail View Type", selection: $settings.detailViewType) {
+ ForEach(PostFileType.allCases, id: \.self) { type in
+ Text(type.rawValue.capitalized).tag(type)
}
- #endif
+ }
}
}