In this article, we will walk you through the process of setting up GitHub in…
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
}