diff --git a/Reader/Screens/AppSplitViewController.swift b/Reader/Screens/AppSplitViewController.swift index 1df944c..887257e 100644 --- a/Reader/Screens/AppSplitViewController.swift +++ b/Reader/Screens/AppSplitViewController.swift @@ -45,7 +45,15 @@ class AppSplitViewController: UISplitViewController { setViewController(sidebarNav, for: .primary) secondaryNav = UINavigationController() + #if targetEnvironment(macCatalyst) secondaryNav.isNavigationBarHidden = true + #else + // the toggle sidebar button only appears if there's a navigation bar + // so we just make always transparent, rather than disabling it + let secondaryNavBarAppearance = UINavigationBarAppearance() + secondaryNavBarAppearance.configureWithTransparentBackground() + secondaryNav.navigationBar.standardAppearance = secondaryNavBarAppearance + #endif secondaryNav.view.backgroundColor = .appBackground setViewController(secondaryNav, for: .secondary)