I have a view controller that takes up the whole screen from top to bottom. I would like to hide the home bar indicator on the bottom of the screen on iPhone X devices.
How can I do this in iOS 11?
You simply need to tap Start (or Resume, if you've triple-clicked a second time) to enter Guided Access mode, in which the Home bar is disabled.
Touch “Settings” -> “Display” -> “Navigation bar” -> “Buttons” -> “Button layout”. Choose the pattern in “Hide navigation bar” -> When the app opens, the navigation bar will be automatically hidden and you can swipe up from the bottom corner of the screen to show it.
Launch the Settings app on your iPhone or iPad. Tap Face ID (or Touch ID) and Passcode. Enter your passcode if prompted. Scroll down and turn off the switch next to Control Center.
You should override prefersHomeIndicatorAutoHidden
in your view controller to achieve that:
override var prefersHomeIndicatorAutoHidden: Bool { return true }
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With