summaryrefslogtreecommitdiff
path: root/Sora/Views/Settings/SettingsDetailsView.swift
diff options
context:
space:
mode:
authorFuwn <[email protected]>2025-02-18 23:39:51 -0800
committerFuwn <[email protected]>2025-02-19 00:00:29 -0800
commit320ce31337ed60cae24a0374fa2d6d79237a6bfe (patch)
treead1e93799efeb8e7a16521e3ab958c911f73f617 /Sora/Views/Settings/SettingsDetailsView.swift
parentfeat: Initial commit (diff)
downloadsora-testing-320ce31337ed60cae24a0374fa2d6d79237a6bfe.tar.xz
sora-testing-320ce31337ed60cae24a0374fa2d6d79237a6bfe.zip
feat: Development commit
Diffstat (limited to 'Sora/Views/Settings/SettingsDetailsView.swift')
-rw-r--r--Sora/Views/Settings/SettingsDetailsView.swift31
1 files changed, 31 insertions, 0 deletions
diff --git a/Sora/Views/Settings/SettingsDetailsView.swift b/Sora/Views/Settings/SettingsDetailsView.swift
new file mode 100644
index 0000000..29b9e76
--- /dev/null
+++ b/Sora/Views/Settings/SettingsDetailsView.swift
@@ -0,0 +1,31 @@
+import SwiftUI
+
+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)
+ }
+ }
+ #endif
+ }
+}