Hide status bar and home indicator on tap

This commit is contained in:
Justin Mazzocchi 2020-10-22 00:38:33 -07:00
parent 0c97096211
commit 264881f9b0
No known key found for this signature in database
GPG Key ID: E223E6937AAFB01C
1 changed files with 4 additions and 0 deletions

View File

@ -41,6 +41,10 @@ class ImagePageViewController: UIPageViewController {
self,
action: #selector(toggleDescriptionVisibility))
}
override var prefersStatusBarHidden: Bool { true }
override var prefersHomeIndicatorAutoHidden: Bool { navigationController?.isNavigationBarHidden ?? false }
}
extension ImagePageViewController {