Function

UIDeviceOrientationIsLandscape(_:)

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

Declaration

func UIDeviceOrientationIsLandscape(_ orientation: UIDeviceOrientation) -> Bool

Parameters

orientation

Specify the value of the orientation property of the UIDevice class.

Return Value

Returns true if the device orientation is landscape, otherwise returns false.