Revert showBars() fullscreen guard — was breaking toolbar visibility on state restoration.

This commit is contained in:
Brent Simmons committed 2026-05-20 14:20:33 -07:00
1 parent 2ccd325fec
commit dc7da4397f
1 file changed
-6
-6
View File
@@ -225,12 +225,6 @@ 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