mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2025-01-25 13:48:42 +01:00
Automatically show the nav and toolbars when separating controllers. Issue #1593
This commit is contained in:
parent
1b1b3e796e
commit
f1e01bd43f
@ -227,7 +227,6 @@ class WebViewController: UIViewController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func showBars() {
|
func showBars() {
|
||||||
if isFullScreenAvailable {
|
|
||||||
AppDefaults.articleFullscreenEnabled = false
|
AppDefaults.articleFullscreenEnabled = false
|
||||||
coordinator.showStatusBar()
|
coordinator.showStatusBar()
|
||||||
topShowBarsViewConstraint?.constant = 0
|
topShowBarsViewConstraint?.constant = 0
|
||||||
@ -236,7 +235,6 @@ class WebViewController: UIViewController {
|
|||||||
navigationController?.setToolbarHidden(false, animated: true)
|
navigationController?.setToolbarHidden(false, animated: true)
|
||||||
configureContextMenuInteraction()
|
configureContextMenuInteraction()
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
func hideBars() {
|
func hideBars() {
|
||||||
if isFullScreenAvailable {
|
if isFullScreenAvailable {
|
||||||
|
@ -1102,6 +1102,7 @@ extension SceneCoordinator: UISplitViewControllerDelegate {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if let articleViewController = masterNavigationController.viewControllers.last as? ArticleViewController {
|
if let articleViewController = masterNavigationController.viewControllers.last as? ArticleViewController {
|
||||||
|
articleViewController.showBars(self)
|
||||||
masterNavigationController.popViewController(animated: false)
|
masterNavigationController.popViewController(animated: false)
|
||||||
let controller = addNavControllerIfNecessary(articleViewController, showButton: true)
|
let controller = addNavControllerIfNecessary(articleViewController, showButton: true)
|
||||||
return controller
|
return controller
|
||||||
|
Loading…
x
Reference in New Issue
Block a user