Search code examples
iosswiftiphoneios11

Safe Area bottom layout issue with interactivePopGesture


enter image description here

we have used default tabbarcontroller. Tabbar rootViewController display tabbar and other viewcontroller hidden tabbar.The bottom layout of safearea not update hight when we use interactivePopGesture. All other case its working fine

    override func viewWillAppear(_ animated: Bool) {
    super.viewWillAppear(animated)

    if navigationController?.viewControllers[0] == self {
        tabBarController?.tabBar.isHidden = false

    } else {
        tabBarController?.tabBar.isHidden = true

    }
}

Solution

  • // issue is in your Tabbar related view controller Properties

    enter image description here

    Follow Below steps:

    1) selected your tabbar prfile viewcontroller

    2) disable Hide Bottom bar on Push

    3) enable Hide Bottom bar on Push when you push on other view controller