I'm having troubles with the method setNavigationBarHidden
, it doesn't seem to work properly on iOS 15.
I am currently working with this structure:
- A
ViewController
, which needs thenavigationBar
- Another
ViewController
, pushed from the previous when I tap aUIButton
, which doesn't need thenavigationBar
On the previous versions of iOS, I simply called setNavigationBarHidden(true, animated: true)
in the viewWillAppear
method of the second ViewController
and everything worked as expected but, from the new version of iOS, that doesn't occur correctly.
Now the navigationBar
doesn't hide properly and, the only way I have to achieve the behavior I want, is by using the navigationBar.isHidden = true
, which unfortunately leads me in a sloppy and not so smooth animation between the two controllers.
How can I solve this?