isStatusBarHidden
A Boolean value that indicates whether the status bar is currently hidden.
Declaration
var isStatusBarHidden: Bool { get }Discussion
To customize the status bar’s visibility for each of your view controllers, override your view controller’s prefersStatusBarHidden property.