Skip to main content
Oldes
Inspiring
May 23, 2018 7:35 AM UTC
Answered

iPhoneX gesture bar

Hello,

current stupid gesture bar on iPhoneX at the bottom of the screen has by default full opacity, and it takes one swipe to get out of the game. I would like to minimise it to have it at least in half-opacity and double-swipe-to-exit enabled. It could be done using overrides to these two methods in the main view controller:

- (UIRectEdge)preferredScreenEdgesDeferringSystemGestures {

        return UIRectEdgeBottom;

}

- (BOOL)prefersHomeIndicatorAutoHidden {

        return false;

}

The question is, how to do it using AIR's native extension?

Any help?

Thanks,

David

This topic is closed to new replies. Start a new post to keep the conversation going.
el111Correct answer
Legend
May 23, 2018 8:04 PM UTC

Here is an open source ANE which overrides preferredScreenEdgesDeferringSystemGestures

GitHub - DigitalStrawberry/ANE-DeferSystemGestures: Adobe AIR native extension for deferring system gestures on iOS

I imagine it can be modified to also override prefersHomeIndicatorAutoHidden

1 reply

el111Correct answer
Legend
May 23, 2018 8:04 PM UTC

Here is an open source ANE which overrides preferredScreenEdgesDeferringSystemGestures

GitHub - DigitalStrawberry/ANE-DeferSystemGestures: Adobe AIR native extension for deferring system gestures on iOS

I imagine it can be modified to also override prefersHomeIndicatorAutoHidden

Translate