Compare commits
2 Commits
e264e8842c
...
6881441671
Author | SHA1 | Date |
---|---|---|
Shadowfacts | 6881441671 | |
Shadowfacts | 57cc5ac5a5 |
|
@ -45,11 +45,15 @@ class AppSplitViewController: UISplitViewController {
|
||||||
setViewController(sidebarNav, for: .primary)
|
setViewController(sidebarNav, for: .primary)
|
||||||
|
|
||||||
secondaryNav = UINavigationController()
|
secondaryNav = UINavigationController()
|
||||||
|
#if targetEnvironment(macCatalyst)
|
||||||
|
secondaryNav.isNavigationBarHidden = true
|
||||||
|
#else
|
||||||
// the toggle sidebar button only appears if there's a navigation bar
|
// the toggle sidebar button only appears if there's a navigation bar
|
||||||
// so we just make always transparent, rather than disabling it
|
// so we just make always transparent, rather than disabling it
|
||||||
let secondaryNavBarAppearance = UINavigationBarAppearance()
|
let secondaryNavBarAppearance = UINavigationBarAppearance()
|
||||||
secondaryNavBarAppearance.configureWithTransparentBackground()
|
secondaryNavBarAppearance.configureWithTransparentBackground()
|
||||||
secondaryNav.navigationBar.standardAppearance = secondaryNavBarAppearance
|
secondaryNav.navigationBar.standardAppearance = secondaryNavBarAppearance
|
||||||
|
#endif
|
||||||
secondaryNav.view.backgroundColor = .appBackground
|
secondaryNav.view.backgroundColor = .appBackground
|
||||||
setViewController(secondaryNav, for: .secondary)
|
setViewController(secondaryNav, for: .secondary)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue