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;
}
But even though it's hidden, I am still able to swipe up from the bottom and my game goes to the home screen.
I have seen a few games where the user has to swipe up once to bring up the home indicator and swipe up again to go to the home screen.
So, how can I force the user to swipe the home indicator twice to go to the home screen in iOS 11 with Objective-C?
This behavior is required for full-screen games.