iOS 18 tabbar flickers and then disappears

  1. Use a UITabBarController to load two ViewControllers, A and B, both wrapped in UINavigationController.

  2. In A’s viewDidLoad method, push to C, with C’s hidesBottomBarWhenPushed set to true. When popping back to A, the tab bar flickers and then disappears.

In versions lower than iOS 18, after popping back, the tabBar does not flicker and disappear.

A ViewController

override func viewDidLoad() {
        super.viewDidLoad()
        let vc = CViewController()
        vc.hidesBottomBarWhenPushed = true
        navigationController?.pushViewController(vc, animated: true)
        
        // Do any additional setup after loading the view.
    }

It is not immediately clear what the issue may be. Please file a feedback request with a sample project that reproduces the issue and reply back with the Feedback number to help us investigate it.

Hi @codercd , I tried to reproduce the problem on tab disappearing and it seem has you described.

It could be correlated to the animated flag, try to simply set the flag animated to false as follow:


override func viewDidLoad() 
{
        super.viewDidLoad()
        let vcC = ViewControllerC()
        vcC.hidesBottomBarWhenPushed = true
        navigationController?.pushViewController(vcC, animated: false)
}

On my sample project the behaviour seems ok (tested on iOS 18 simulator).

Bye
Rob





iOS 18 tabbar flickers and then disappears
 
 
Q