I\'m using the code below to hide the home indicator on iPhone X, which is working fine in the emulator.
-(BOOL)prefersHomeIndicatorAutoHidden
{
return YES;
I had the same problem.
PrefersHomeIndicatorAutoHidden
must return NO but also PreferredScreenEdgesDeferringSystemGestures
must be overridden and return UIRectEdgeBottom
.
override var prefersHomeIndicatorAutoHidden: Bool {
return false
}
override var preferredScreenEdgesDeferringSystemGestures: UIRectEdge {
return UIRectEdge.bottom
}