summaryrefslogtreecommitdiff
path: root/Sora/Views/ContentView.swift
diff options
context:
space:
mode:
authorFuwn <[email protected]>2025-06-20 08:54:43 -0700
committerFuwn <[email protected]>2025-06-20 08:54:43 -0700
commit844f6b2c7b38e19cefa97cbe4d2e52f065d9412f (patch)
tree9fe1c0ab78000b632c11e8b2f9189a7324c6d59e /Sora/Views/ContentView.swift
parentfeat: Development commit (diff)
downloadsora-testing-844f6b2c7b38e19cefa97cbe4d2e52f065d9412f.tar.xz
sora-testing-844f6b2c7b38e19cefa97cbe4d2e52f065d9412f.zip
feat: Development commit
Diffstat (limited to 'Sora/Views/ContentView.swift')
-rw-r--r--Sora/Views/ContentView.swift14
1 files changed, 0 insertions, 14 deletions
diff --git a/Sora/Views/ContentView.swift b/Sora/Views/ContentView.swift
index cf449f3..1eea6c2 100644
--- a/Sora/Views/ContentView.swift
+++ b/Sora/Views/ContentView.swift
@@ -3,21 +3,10 @@ import SwiftUI
struct ContentView: View {
@EnvironmentObject var manager: BooruManager
@Binding var selectedTab: Int
- @State private var tabs = [
- "Posts",
- "Search History",
- "Bookmarks",
- ]
var body: some View {
#if os(macOS)
NavigationSplitView {
- List(selection: $selectedTab) {
- ForEach(Array(tabs.enumerated()), id: \.offset) { index, element in
- NavigationLink(value: index) { Text(element) }
- }
- }
- } content: {
switch selectedTab {
case 1:
PostGridSearchHistoryView(
@@ -42,9 +31,6 @@ struct ContentView: View {
.foregroundColor(.secondary)
}
}
- #if DEBUG
- .onAppear { tabs.append("Settings") }
- #endif
#else
NavigationStack {
PostGridView(selectedTab: $selectedTab)