mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 06:55:59 +00:00
Revert the space filters Toggle and instead don't try to use glass when in the sidebar.
This reverts commit 283029b14976cda1aa567c947c27b09916c88824.
This commit is contained in:
@@ -326,6 +326,11 @@ import SwiftUI
|
||||
}
|
||||
}
|
||||
|
||||
extension EnvironmentValues {
|
||||
/// Whether or not the current view is part of the sidebar module of a `NavigationSplitCoordinator`.
|
||||
@Entry var isInSidebar = false
|
||||
}
|
||||
|
||||
private struct NavigationSplitCoordinatorView: View {
|
||||
@State private var columnVisibility = NavigationSplitViewVisibility.all
|
||||
|
||||
@@ -381,9 +386,11 @@ private struct NavigationSplitCoordinatorView: View {
|
||||
NavigationSplitView(columnVisibility: $columnVisibility) {
|
||||
if let sidebarModule = navigationSplitCoordinator.sidebarModule {
|
||||
sidebarModule.coordinator?.toPresentable()
|
||||
.environment(\.isInSidebar, true)
|
||||
.id(sidebarModule.id)
|
||||
} else {
|
||||
navigationSplitCoordinator.placeholderModule.coordinator?.toPresentable()
|
||||
.environment(\.isInSidebar, true)
|
||||
.id(navigationSplitCoordinator.placeholderModule.id)
|
||||
}
|
||||
} detail: {
|
||||
|
||||
Reference in New Issue
Block a user