summaryrefslogtreecommitdiff
path: root/Sora/Views/ContentView.swift
diff options
context:
space:
mode:
authorFuwn <[email protected]>2025-02-25 17:19:23 -0800
committerFuwn <[email protected]>2025-02-25 17:19:23 -0800
commit89a73942d3ce63d87d214b0f2d2004055e1066cd (patch)
treeb284134606046ec0e2bf8f0f307acd0798519f29 /Sora/Views/ContentView.swift
parentfeat: Development commit (diff)
downloadsora-testing-89a73942d3ce63d87d214b0f2d2004055e1066cd.tar.xz
sora-testing-89a73942d3ce63d87d214b0f2d2004055e1066cd.zip
feat: Development commit
Diffstat (limited to 'Sora/Views/ContentView.swift')
-rw-r--r--Sora/Views/ContentView.swift12
1 files changed, 3 insertions, 9 deletions
diff --git a/Sora/Views/ContentView.swift b/Sora/Views/ContentView.swift
index 5c19f37..b232e18 100644
--- a/Sora/Views/ContentView.swift
+++ b/Sora/Views/ContentView.swift
@@ -13,9 +13,7 @@ struct ContentView: View {
NavigationSplitView {
List(selection: $selectedTabIndex) {
ForEach(Array(tabs.enumerated()), id: \.offset) { index, element in
- NavigationLink(value: index) {
- Text(element)
- }
+ NavigationLink(value: index) { Text(element) }
}
}
} content: {
@@ -38,9 +36,7 @@ struct ContentView: View {
}
}
#if DEBUG
- .onAppear {
- tabs.append("Settings")
- }
+ .onAppear { tabs.append("Settings") }
#endif
#else
NavigationStack {
@@ -51,9 +47,7 @@ struct ContentView: View {
set: { if !$0 { manager.selectedPost = nil } }
)
) {
- if let post = manager.selectedPost {
- PostDetailsView(post: post)
- }
+ if let post = manager.selectedPost { PostDetailsView(post: post) }
}
}
#endif