diff --git a/Modules/BuildioUI/Sources/BuildioUI/Navigation/SplitNavigationController.swift b/Modules/BuildioUI/Sources/BuildioUI/Navigation/SplitNavigationController.swift index cb7abc3..43b7737 100644 --- a/Modules/BuildioUI/Sources/BuildioUI/Navigation/SplitNavigationController.swift +++ b/Modules/BuildioUI/Sources/BuildioUI/Navigation/SplitNavigationController.swift @@ -39,6 +39,7 @@ struct SplitNavigationView: UIViewControllerRepresentable { } else { navigator.navigationController?.mode = .primaryOnly } + navigator.navigationController?.setNavigationBarHidden(fullscreen.wrappedValue, animated: true) navigator.navigationController?.updateTheme(theme) } @@ -110,6 +111,11 @@ final class SplitNavigationController: UIViewController { self.secondaryNavigationController = Self.navigationController(EmptyViewController()) super.init(nibName: nil, bundle: nil) } + + func setNavigationBarHidden(_ hidden: Bool, animated: Bool) { + primaryNavigationController.setNavigationBarHidden(hidden, animated: animated) + secondaryNavigationController.setNavigationBarHidden(hidden, animated: animated) + } func push(_ controller: UIViewController, animated: Bool = true, shouldReplace: Bool) { switch mode { diff --git a/Modules/BuildioUI/Sources/BuildioUI/UI/Logs/LogsView.swift b/Modules/BuildioUI/Sources/BuildioUI/UI/Logs/LogsView.swift index e80a988..5692101 100644 --- a/Modules/BuildioUI/Sources/BuildioUI/UI/Logs/LogsView.swift +++ b/Modules/BuildioUI/Sources/BuildioUI/UI/Logs/LogsView.swift @@ -34,7 +34,6 @@ struct LogsView: View { } } .frame(maxHeight: .infinity) - .navigationBarHidden(fullscreen.wrappedValue) .onAppear { fullscreen.wrappedValue = false }