Contents

isLandscape

A Boolean value that indicates whether the user interface is currently presented in a landscape orientation.

Declaration

var isLandscape: Bool { get }

Discussion

The interface orientation can be different than the device orientation. You typically call this function in your view controller code to check the current orientation.

See Also

Interface orientation