CLDeviceOrientation

public enum CLDeviceOrientation : String, CustomDebugStringConvertible, CustomStringConvertible

Represents the physical orientation of a device. Apple Documentation

  • The device’s orientation is unknown.

    Declaration

    Swift

    case unknown = "Unknown"
  • The device is in portrait mode, with the device held upright and the home button at the bottom.

    Declaration

    Swift

    case portrait = "Portrait"
  • The device is in portrait mode, but upside down.

    Declaration

    Swift

    case portraitUpsideDown = "Portrait Upside Down"
  • The device is in landscape mode, with the device held upright and the home button on the right side.

    Declaration

    Swift

    case landscapeLeft = "Landscape Left"
  • The device is in landscape mode, with the device held upright and the home button on the left side.

    Declaration

    Swift

    case landscapeRight = "Landscape Right"
  • The device is laid flat, with the screen facing upwards.

    Declaration

    Swift

    case faceUp = "Face Up"
  • The device is laid flat, with the screen facing downwards.

    Declaration

    Swift

    case faceDown = "Face Down"

CustomStringConvertible

  • A user-friendly description of the device orientation.

    Declaration

    Swift

    public var description: String { get }

CustomDebugStringConvertible

  • A debug-friendly description of the device orientation.

    Declaration

    Swift

    public var debugDescription: String { get }