Link Search Menu Expand Document

InterfaceOrientation

The orientation of the application’s user interface

public enum InterfaceOrientation: Int 

Inheritance

Int

Enumeration Cases

unknown

The orientation of the device is unknown.

case unknown

portrait

The device is in portrait mode, with the device upright.

case portrait

portraitUpsideDown

The device is in portrait mode, with the device upside down.

case portraitUpsideDown

landscapeLeft

The device is in landscape mode, with the device upright.

case landscapeLeft

landscapeRight

The device is in landscape mode, with the device upright.

case landscapeRight

Properties

isLandscape

public var isLandscape: Bool 

isPortrait

public var isPortrait: Bool