diff options
| author | Fuwn <[email protected]> | 2025-02-22 08:20:08 -0800 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2025-02-22 08:20:08 -0800 |
| commit | 4a2e9cdfde7f06f36f0a44ef9484b2dd134e3188 (patch) | |
| tree | 86dc433f39075f4c39705d9d198df47002912526 /Sora/Views/ContentView.swift | |
| parent | feat: Development commit (diff) | |
| download | sora-testing-4a2e9cdfde7f06f36f0a44ef9484b2dd134e3188.tar.xz sora-testing-4a2e9cdfde7f06f36f0a44ef9484b2dd134e3188.zip | |
feat: Development commit
Diffstat (limited to 'Sora/Views/ContentView.swift')
| -rw-r--r-- | Sora/Views/ContentView.swift | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/Sora/Views/ContentView.swift b/Sora/Views/ContentView.swift index c7ac1a6..8613e56 100644 --- a/Sora/Views/ContentView.swift +++ b/Sora/Views/ContentView.swift @@ -19,9 +19,14 @@ struct ContentView: View { } } } content: { - if selectedTabIndex == 1 { + switch selectedTabIndex { + case 1: BookmarksView(selectedTab: $selectedTabIndex) - } else { + + case 2: + SettingsView() + + default: PostGridView() } } detail: { @@ -32,6 +37,11 @@ struct ContentView: View { .foregroundColor(.secondary) } } + #if DEBUG + .onAppear { + tabs.append("Settings") + } + #endif #else NavigationStack { PostGridView() @@ -39,8 +49,3 @@ struct ContentView: View { #endif } } - -#Preview { - ContentView() - .environmentObject(Settings()) -} |