diff options
Diffstat (limited to 'Sora/Views/ContentView.swift')
| -rw-r--r-- | Sora/Views/ContentView.swift | 14 |
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) |