Search code examples
gestureios11

IPhone X Swiping up to switch app activates buttons at the bottom of the screen


We are currently checking if our app is compatible with the upcoming iPhone X and its new form factor and gestures. We noticed a problem regarding the switch to home screen gesture where swiping up actually triggers the action on the buttons located at the bottom of the screen.

In our case, this is problematic, because our app is a remote controller for very high end amplifiers and the buttons located at the bottom of the screen are volume buttons..

See image:

Figure 1

Anyone here had to deal with this kind of issue lately?

I was thinking of some kind of event that could be triggered by the swipe up gesture and disabling the buttons maybe?

Thanks for your help.


Solution

  • So we finally decided to go for the safe area principle and stick our bottom bar to the bottom of the safe area as suggested by Apple.

    It's a bit annoying as it adds a big empty space at the bottom of the screen but I guess every app having actions there will have the same problem (tab bar for example)

    Safe area

    Here's the article I used: https://useyourloaf.com/blog/safe-area-layout-guide/

    If you found another solution, I would be happy to read about it.

    Thanks.