Search code examples
iosswiftstatusbar

Status bar disappear


I'm using this library https://github.com/dekatotoro/SlideMenuControllerSwift and occasionally when I dismiss the container view or make a segue to another navigation view, I'm losing the status bar... some ideas?

I have on Appdelegate:

    application.setStatusBarStyle(.lightContent, animated: true)  
    application.isStatusBarHidden = false
    UIApplication.shared.statusBarStyle = .lightContent

and in InfoPlist View controller-based status bar appearance -> NO

Any ideas?


Solution

  • I'm not sure.just check it out.

    In my quick search in that SlideMenuControllerSwift library there is property called hideStatusBar from SlideMenuController class it's default value is true. Change it to false & check again.

    public static var hideStatusBar: Bool = true
    

    Source