mirror of
https://github.com/metabolist/metatext.git
synced 2024-11-25 09:41:00 +00:00
Hide status bar and home indicator on tap
This commit is contained in:
parent
0c97096211
commit
264881f9b0
1 changed files with 4 additions and 0 deletions
|
@ -41,6 +41,10 @@ class ImagePageViewController: UIPageViewController {
|
||||||
self,
|
self,
|
||||||
action: #selector(toggleDescriptionVisibility))
|
action: #selector(toggleDescriptionVisibility))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
override var prefersStatusBarHidden: Bool { true }
|
||||||
|
|
||||||
|
override var prefersHomeIndicatorAutoHidden: Bool { navigationController?.isNavigationBarHidden ?? false }
|
||||||
}
|
}
|
||||||
|
|
||||||
extension ImagePageViewController {
|
extension ImagePageViewController {
|
||||||
|
|
Loading…
Reference in a new issue