Skip to content

👩🏻‍💻 🧑🏽‍💻 Subscribe and Read us on Substack to Get Full Access to Our Posts


How to hide Status Bar in your ViewController in Swift

If you want to know how to hide Status Bar in your ViewController in Swift, here is how:

To hide Status Bar add this method to your UIViewController

 override var prefersStatusBarHidden: Bool {
        return true
    }

To show Status Bar add this method to your UIViewController

 override var prefersStatusBarHidden: Bool {
        return false
    }
Back To Top
Search

Get Latest App Development News, Tips and Tutorials

* indicates required