I created an application that should have a panel above the navigation bar and other views. To do this, I use a view controller with a view for the top bar, and then a container view for everything else. Sometimes the top panel must be hidden. I use autolayout to hide the top panel (set its height to 0), and the container view expands to fill the screen (the top of the container is equal to the bottom bottom panel). There is a navigation controller in the container view, because sometimes I need a navigation bar below the top panel. When I run the application, everything works fine, as shown below:

, , ,
, , segue ( push) ( ), , , :

? ?
, , , , , , , . , , .
!