Sidemenu: Why am I seeing the black in the notch?

Created on 25 Apr 2018  路  5Comments  路  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.
  • [ x] My issue is reproducible in the demo project.

Issue Description


image

Most helpful comment

The solution is

if let navigationController =  self.navigationController as? UISideMenuNavigationController {
            navigationController.sideMenuManager.menuAnimationBackgroundColor = UIColor.clear
        }

image

All 5 comments

This is a question for stackoverflow.com.

It works fine with other viewcontrollers if I pin the UIView to superview but is specifically not working with the SideMenu.
image

The solution is

if let navigationController =  self.navigationController as? UISideMenuNavigationController {
            navigationController.sideMenuManager.menuAnimationBackgroundColor = UIColor.clear
        }

image

Thank you! Exactly what I needed.

Based on @takasurazeem solution:
let menu = SideMenuNavigationController(rootViewController: controller)
menu.presentationStyle.backgroundColor = .clear

Was this page helpful?
0 / 5 - 0 ratings