Animation hiding the status bar without changing the height of the UINavigationController

When you call UIApplication.sharedApplication().setStatusBarHidden(true, withAnimation: .Slide) at any time inside the controller built into the UINavigationController (in a project with the status bar on the control panel set to NO ), the status bar will slide and the height the navigation bar will also decrease. This does not work in my case.

I do not want to change the height of the navigation bar. I want the status bar text to bounce, but that was. I just found that the Slack app does this exactly when you slide the left sidebar. The status bar moves up, and when you close the sidebar, it enlivens the back without affecting the height of the navigation bar. How can I get the same behavior?

Please note that in the landscape I need the default look of the navigator - the height is reduced and there is no visible status bar.

+6
source share

Source: https://habr.com/ru/post/988548/


All Articles