Improve status bar hide logic

This commit is contained in:
Justin Mazzocchi 2020-10-28 19:01:24 -07:00
parent 668d4f2577
commit 5540c959f0
No known key found for this signature in database
GPG key ID: E223E6937AAFB01C

View file

@ -53,7 +53,7 @@ class ImagePageViewController: UIPageViewController {
action: #selector(toggleDescriptionVisibility))
}
override var prefersStatusBarHidden: Bool { true }
override var prefersStatusBarHidden: Bool { navigationController?.isNavigationBarHidden ?? false }
override var prefersHomeIndicatorAutoHidden: Bool { navigationController?.isNavigationBarHidden ?? false }
}