Good for this you can do the following based on events:
//For hiding/unhiding: func hideStatusBar(shouldHide:Bool){ UIApplication.shared.isStatusBarHidden = shouldHide } //For Light Style: func lightStatusBar(){ UIApplication.shared.statusBarStyle = .lightContent } //For Standard Style: func standardStatusBar(){ UIApplication.shared.statusBarStyle = .default }
or you can configure prefersStatusBarHidden :.
ankit May 03 '17 at 6:40 a.m. 2017-05-03 06:40
source share