diff --git a/iOS/Article/ArticleViewController.swift b/iOS/Article/ArticleViewController.swift index ae6e73837..055c54849 100644 --- a/iOS/Article/ArticleViewController.swift +++ b/iOS/Article/ArticleViewController.swift @@ -189,6 +189,14 @@ 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 UIDevice.current.userInterfaceIdiom == .phone && newCollection.horizontalSizeClass == .regular { + currentWebViewController?.showBars() + } + } + func updateUI() { guard let article = article else {