Instance Property

isValidInterfaceOrientation

A Boolean value indicating whether the specified orientation is one of the portrait or landscape orientations.

Declaration

var isValidInterfaceOrientation: Bool { get }

See Also

Testing the Orientation

var isFlat: Bool

A Boolean value indicating whether the specified orientation is face up or face down.

var isLandscape: Bool

Returns a Boolean value indicating whether the device is in a landscape orientation.

var isPortrait: Bool

Returns a Boolean value indicating whether the device is in a portrait orientation.