Automatically show the nav and toolbars when separating controllers. Issue #1593

This commit is contained in:
Maurice Parker 2020-01-09 21:22:29 -07:00
parent 1b1b3e796e
commit f1e01bd43f
2 changed files with 8 additions and 9 deletions

View File

@ -227,7 +227,6 @@ class WebViewController: UIViewController {
}
func showBars() {
if isFullScreenAvailable {
AppDefaults.articleFullscreenEnabled = false
coordinator.showStatusBar()
topShowBarsViewConstraint?.constant = 0
@ -236,7 +235,6 @@ class WebViewController: UIViewController {
navigationController?.setToolbarHidden(false, animated: true)
configureContextMenuInteraction()
}
}
func hideBars() {
if isFullScreenAvailable {

View File

@ -1102,6 +1102,7 @@ extension SceneCoordinator: UISplitViewControllerDelegate {
}
if let articleViewController = masterNavigationController.viewControllers.last as? ArticleViewController {
articleViewController.showBars(self)
masterNavigationController.popViewController(animated: false)
let controller = addNavControllerIfNecessary(articleViewController, showButton: true)
return controller