From e85d49b352b0b338d665bfc227873dc9e552908e Mon Sep 17 00:00:00 2001 From: Brent Simmons Date: Sun, 15 Nov 2026 20:43:05 -0800 Subject: [PATCH] Fixed bug with fullscreen articles on iOS where going back to timeline would make the app would forget that you were in fullscreen mode. --- iOS/Article/ArticleViewController.swift | 2 +- iOS/Article/WebViewController.swift | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) 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