Only hide toolbar in debug log
Split view controller is shi**y enough not to handle navigation bar properly on rotation. When in compact mode, the navigation bar comes from the split view controller. Hiding it and then going to regular (landscape), will leave the master without the navigation bar and no way to restore it.
This commit is contained in:
parent
6ecf859a5e
commit
634f34405b
|
@ -76,9 +76,10 @@ class DebugLogViewController: UIViewController {
|
||||||
// MARK: Actions
|
// MARK: Actions
|
||||||
|
|
||||||
@objc private func toggleBars() {
|
@objc private func toggleBars() {
|
||||||
let isHidden = navigationController?.isToolbarHidden ?? true
|
let nav = navigationController
|
||||||
navigationController?.setNavigationBarHidden(!isHidden, animated: true)
|
let isHidden = nav?.isToolbarHidden ?? true
|
||||||
navigationController?.setToolbarHidden(!isHidden, animated: true)
|
// nav?.setNavigationBarHidden(!isHidden, animated: true)
|
||||||
|
nav?.setToolbarHidden(!isHidden, animated: true)
|
||||||
}
|
}
|
||||||
|
|
||||||
@IBAction private func share(_ sender: Any?) {
|
@IBAction private func share(_ sender: Any?) {
|
||||||
|
|
Loading…
Reference in New Issue