From c78ed42a5ec26d01cdb44241f8517130daed381d Mon Sep 17 00:00:00 2001 From: Shadowfacts Date: Sat, 10 Sep 2022 13:32:18 -0400 Subject: [PATCH] Fix show sidebar button not appearing on iPad --- Reader/Screens/AppSplitViewController.swift | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Reader/Screens/AppSplitViewController.swift b/Reader/Screens/AppSplitViewController.swift index 1df944c..f726991 100644 --- a/Reader/Screens/AppSplitViewController.swift +++ b/Reader/Screens/AppSplitViewController.swift @@ -45,7 +45,11 @@ class AppSplitViewController: UISplitViewController { setViewController(sidebarNav, for: .primary) secondaryNav = UINavigationController() - secondaryNav.isNavigationBarHidden = true + // 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 secondaryNav.view.backgroundColor = .appBackground setViewController(secondaryNav, for: .secondary)