interfaceOrientation
Convenience property that provides the current orientation of the interface, meaningful only if the view controller is taking up the full screen.
Declaration
var interfaceOrientation: UIInterfaceOrientation { get }Discussion
Do not use this property for informing layout decisions.
The possible values for the interfaceOrientation property are described in the UIInterfaceOrientation enum.