andreamazz / AMScrollingNavbar

Scrollable UINavigationBar that follows the scrolling of a UIScrollView
MIT License
6.05k stars 634 forks source link

UITabbarController show space above navigationbar ios15 #407

Open mmdHussain opened 2 years ago

mmdHussain commented 2 years ago

Describe the bug When adding UITbbarController in viewcontroller stack of AMScrollNavBar.The top space does'nt go away.

To Reproduce Steps to reproduce the behavior:

  1. Adding tabbarcontroller to navigation bar like this self.navigationController?.viewControllers = [UIStoryboard.main.instantiateViewController(withIdentifier: TabbarViewController.className)] and navigationcontroller is ScrollingNavigationViewController.
  2. Child controllers of tabbarcontroller shows space above navigationbar.
  3. I'm using ios version 15.Xcode version 13.1.Macos version 11.6

Expected behavior These top space should not be visible.

Screenshots simulator_screenshot_26D60CA4-6983-4DCF-AE15-365842E38082