Swift ios navigation bar will not appear after hidden scrolling

The structure of my VC View -> Scroll View -> View , if that matters.

Then I use this code to hide the navigation bar when scrolling. The only problem is that after the panel is hidden, it will not appear again. Only the white line is visible (Carrier, battery, etc.).

 override func viewDidAppear(animated: Bool) { super.viewDidAppear(animated) navigationController?.hidesBarsOnSwipe = true } 

So now my question is: how to show the panel again?

Thank you in advance

Edit, apple docs:

Discussion When this property is set to true, the top swipe hides the navigation bar and toolbar. Scrolling down shows both bars again. If there are no objects on the toolbar, it remains visible even after scrolling. The default value of this property is false.

+5
source share

All Articles