Link Search Menu Expand Document

InterfaceOrientationMask

These constants are mask bits for specifying a view controller’s supported interface orientations.

public struct InterfaceOrientationMask: OptionSet 

Inheritance

OptionSet

Nested Type Aliases

RawValue

public typealias RawValue = UInt

Initializers

init(rawValue:)

public init(rawValue: RawValue) 

Properties

rawValue

public let rawValue: RawValue

portrait

The view controller supports a portrait interface orientation.

public static var portrait: InterfaceOrientationMask 

landscapeLeft

The view controller supports a landscape-left interface orientation.

public static var landscapeLeft: InterfaceOrientationMask 

landscapeRight

The view controller supports a landscape-right interface orientation.

public static var landscapeRight: InterfaceOrientationMask 

portraitUpsideDown

The view controller supports an upside-down portrait interface orientation.

public static var portraitUpsideDown: InterfaceOrientationMask 

landscape

The view controller supports both landscape-left and landscape-right interface orientation.

public static var landscape: InterfaceOrientationMask 

all

The view controller supports all interface orientations.

public static var all: InterfaceOrientationMask 

allButUpsideDown

The view controller supports all but the upside-down portrait interface orientation.

public static var allButUpsideDown: InterfaceOrientationMask