Fixed bug with fullscreen articles on iOS where going back to timeline would make the app would forget that you were in fullscreen mode.

This commit is contained in:
Brent Simmons committed 2026-11-15 20:43:05 -08:00
1 parent cac2f97227
commit e85d49b352
2 files changed
+6 -1

No files matched your search

+1 -1
View File
@@ -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) {
+5
View File
@@ -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