Compare commits
2 Commits
6881441671
...
e264e8842c
Author | SHA1 | Date |
---|---|---|
Shadowfacts | e264e8842c | |
Shadowfacts | c78ed42a5e |
|
@ -45,15 +45,11 @@ 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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue