diff --git a/iOS/Article/ArticleViewController.swift b/iOS/Article/ArticleViewController.swift index 87c19db59..672f121fa 100644 --- a/iOS/Article/ArticleViewController.swift +++ b/iOS/Article/ArticleViewController.swift @@ -274,7 +274,7 @@ final class ArticleViewController: UIViewController { } // Pass animated: false — animating the nav bar / toolbar visibility change during the // disappear transition triggers an Auto Layout assertion (NSISEngine) and crashes. - currentWebViewController?.showBars(animated: false) + currentWebViewController?.restoreBars(animated: false) } override func viewDidDisappear(_ animated: Bool) { diff --git a/iOS/Article/WebViewController.swift b/iOS/Article/WebViewController.swift index 39f4a0a5d..7701e92b2 100644 --- a/iOS/Article/WebViewController.swift +++ b/iOS/Article/WebViewController.swift @@ -291,6 +291,11 @@ final class WebViewController: UIViewController { func showBars(animated: Bool = true) { AppDefaults.articleFullscreenEnabled = false + restoreBars(animated: animated) + } + + /// Shows the bars without leaving full screen mode, so the next article still opens full screen. + func restoreBars(animated: Bool) { coordinator.showStatusBar() topShowBarsViewConstraint?.constant = 0 bottomShowBarsViewConstraint?.constant = 0