From d44d20b20d55f08595ff57b7fe6a312243a6ef69 Mon Sep 17 00:00:00 2001 From: Stuart Breckenridge Date: Thu, 16 Apr 2026 21:06:44 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fix=20full-screen=20article=20vi?= =?UTF-8?q?ew?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Remove the split view collapse check from the full-screen availability condition and drop the trait collection transition override that forced bars to appear on rotation. Fixes #5145. --- iOS/Article/ArticleViewController.swift | 8 -------- iOS/Article/WebViewController.swift | 2 +- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/iOS/Article/ArticleViewController.swift b/iOS/Article/ArticleViewController.swift index f1239ab89..f02dae445 100644 --- a/iOS/Article/ArticleViewController.swift +++ b/iOS/Article/ArticleViewController.swift @@ -227,14 +227,6 @@ final class ArticleViewController: UIViewController { view.layoutIfNeeded() } - override func willTransition(to newCollection: UITraitCollection, with coordinator: any UIViewControllerTransitionCoordinator) { - // We only want to show bars when rotating to horizontalSizeClass == .regular - // (i.e., big) iPhones to resolve crash #4483. - if traitCollection.userInterfaceIdiom == .phone && newCollection.horizontalSizeClass == .regular { - currentWebViewController?.showBars() - } - } - func updateUI() { guard let article = article else { diff --git a/iOS/Article/WebViewController.swift b/iOS/Article/WebViewController.swift index 993dffdd8..24d5a1923 100644 --- a/iOS/Article/WebViewController.swift +++ b/iOS/Article/WebViewController.swift @@ -38,7 +38,7 @@ final class WebViewController: UIViewController { private lazy var contextMenuInteraction = UIContextMenuInteraction(delegate: self) private var isFullScreenAvailable: Bool { - return AppDefaults.shared.articleFullscreenAvailable && traitCollection.userInterfaceIdiom == .phone && coordinator.isRootSplitCollapsed + return AppDefaults.shared.articleFullscreenAvailable && traitCollection.userInterfaceIdiom == .phone } private lazy var articleIconSchemeHandler = ArticleIconSchemeHandler(coordinator: coordinator) private lazy var transition = ImageTransition(controller: self)