Sidemenu: Handling safe area insects for landscape mode (Notch cutting menu in iPhone X and above)

Created on 12 Oct 2018  路  3Comments  路  Source: jonkykong/SideMenu

New Issue Checklist


I have read the guidelines for contributing and I understand:

  • [x] My issue is happening in the latest version of SideMenu.
  • [x] My issue was not solved in the README.
  • [x] My issue can not be answered on stackoverflow.com.
  • [x] My issue is not a request for new functionality that I am unwilling to build and contribute with a pull request.
  • [ ] My issue is reproducible in the demo project.

Issue Description

Any idea, how to handle the safe area insect for the side menu transition? I am trying to use the side menu (left) in portrait and landscape mode. For portrait mode safe area insect is zero so it doesn't have any issue. But in case of landscape, I have 44.0 safe area insect, but the side menu disregards this and starts from zero. And when the menu gets closed this will end up a jerky animation.

This is important for iPhone X, XS and above, as they have notch and I don't want menu cells cut off by notch.

Thanks in advance.

Most helpful comment

@jonkykong This is an issue with SideMenu lib itself, I will try to create a demo project as soon as possible.

SideMenu doesn't respect the SafeArea insects and this needs to be handled in the library itself. You can see this issue easily with latest iPhone Simulators and presentation mode "slideOut".

All 3 comments

This is not an issue with SideMenu. This is a question for StackOverflow.com.

@jonkykong This is an issue with SideMenu lib itself, I will try to create a demo project as soon as possible.

SideMenu doesn't respect the SafeArea insects and this needs to be handled in the library itself. You can see this issue easily with latest iPhone Simulators and presentation mode "slideOut".

@aksswami did you find any workaround?

Was this page helpful?
0 / 5 - 0 ratings