diff --git a/iOS/Article/WebViewController.swift b/iOS/Article/WebViewController.swift index 6e679ff75..23f097b97 100644 --- a/iOS/Article/WebViewController.swift +++ b/iOS/Article/WebViewController.swift @@ -217,6 +217,12 @@ final class WebViewController: UIViewController { } func showBars(animated: Bool = true) { + // Skip when bars aren't hidden. Avoids redundant layout work on every back-navigation + // and — more importantly — avoids triggering a layout pass during viewWillDisappear, + // which has tripped an Auto Layout (NSISEngine) assertion in production crash reports. + guard AppDefaults.shared.articleFullscreenEnabled else { + return + } AppDefaults.shared.articleFullscreenEnabled = false coordinator.showStatusBar() topShowBarsViewConstraint?.constant = 0