statusBarOrientation
The current orientation of the app’s status bar.
Declaration
var statusBarOrientation: UIInterfaceOrientation { get set }Discussion
The value of this property is a constant that indicates an orientation of the status bar. See UIInterfaceOrientation for details. Setting this property rotates the status bar to the specified orientation without animating the transition. If your app has rotatable window content, however, you shouldn’t arbitrarily set status-bar orientation using this method. The status-bar orientation set by this method doesn’t change if the device changes orientation. For more on rotatable window views, see View Controller Programming Guide for iOS.