Open SalehMohammedAlnuwaysir opened 4 years ago
Could not reproduce, please provide a sample
I think the issue is related to UIViewController's present method. The sidemenu container view controller's frame grows after dismiss. It is hard to produce the problem but it is also related with the status bar height. When the uinavigationbar overlaps after dissmissing presented uiviewcontroller, side menu also goes up. When I left the app and came back, navigationbar comes to normal position.
I managed to fix the issue in Xamarin adding this line(Window.rootViewController = navBar) into the below method in the ViewPresenter class. It is mentioned here https://stackoverflow.com/questions/57922502/uinavigationbar-overlapping-status-bar-when-open-project-in-xcode-11.
protected override UINavigationController CreateNavigationController(UIViewController viewController) { var navBar = base.CreateNavigationController(viewController); navBar.NavigationBarHidden = true;
Window.RootViewController = navBar;
return navBar;
}
Dears,
As you can see in the attached photo, after showing the side menu the navigation bar goes behind the status bar, this issue only happens in iOS 13, earlier versions don't have this issue