I use the code below to hide the home indicator on the iPhone X, which works fine in the emulator.
-(BOOL)prefersHomeIndicatorAutoHidden
{
return YES;
}
But even though it is hidden, I can still swipe up from the bottom, and my game goes to the home screen.
I saw several games in which the user has to swipe up once to bring up the home indicator, and again swipe up to go to the main screen.
So, how can I get the user to double-show the home indicator to go to the home screen in iOS 11 with Objective-C?
This behavior is required for full-screen games.
source
share