Instance Property

isFlat

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

Declaration

var isFlat: Bool { get }

See Also

Determining the Current Orientation

var isPortrait: Bool

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

var isLandscape: Bool

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

var isValidInterfaceOrientation: Bool

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

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software