How to get iPhone X home bar to double swipe in landscape?

Landscape apps made with Xcode 8.3 are letterboxed on the iPhone X, and the home bar is partially disabled, meaning that the user must swipe up to "wake it" then swipe up again to exit the app. It's this second functionality that I want to implement while taking full advantage of the screen size, so how do I replicate that feature?


If I set the view controller's prefersHomeIndicatorAutoHidden() to return true, the home bar temporarily disappears, but every time I touch the screen it comes back (a bit jarring), and it still only takes a single swipe to exit the app. I have not been able to find any other options to do what I want, but clearly it should be possible since it automatically happens for older apps.


Suggestions?

Replies

[Solved] Apparently its just deferring the bottom edge without hiding the home indicator.


- (UIRectEdge)preferredScreenEdgesDeferringSystemGestures
{
    return UIRectEdgeBottom;
}
- (BOOL)prefersHomeIndicatorAutoHidden
{
    return false;
}

Hi