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
1 changed files with 1 additions and 1 deletions

View File

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