<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "visionOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIInterfaceOrientation",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:@E@UIInterfaceOrientation"
  },
  "title" : "UIInterfaceOrientation"
}
-->

# UIInterfaceOrientation

Constants that specify the orientation of the app’s user interface.

```
enum UIInterfaceOrientation
```

## Overview

Starting in iOS 8, you should employ the [`UITraitCollection`](/documentation/UIKit/UITraitCollection) and [`UITraitEnvironment`](/documentation/UIKit/UITraitEnvironment) APIs, and size class properties as used in those APIs, instead of using [`UIInterfaceOrientation`](/documentation/UIKit/UIInterfaceOrientation) constants or otherwise writing your app in terms of interface orientation.

In earlier versions of iOS, you used these constants in the [`statusBarOrientation`](/documentation/UIKit/UIApplication/statusBarOrientation) property and the [`setStatusBarOrientation(_:animated:)`](/documentation/UIKit/UIApplication/setStatusBarOrientation(_:animated:)) method.

> Important:
> Notice that ``doc://com.apple.uikit/documentation/UIKit/UIDeviceOrientation/landscapeRight`` is assigned to ``doc://com.apple.uikit/documentation/UIKit/UIInterfaceOrientation/landscapeLeft`` and ``doc://com.apple.uikit/documentation/UIKit/UIDeviceOrientation/landscapeLeft`` is assigned to ``doc://com.apple.uikit/documentation/UIKit/UIInterfaceOrientation/landscapeRight``. The reason for this is that rotating the device requires rotating the content in the opposite direction.

## Topics

### Orientations

[`UIInterfaceOrientation.unknown`](/documentation/UIKit/UIInterfaceOrientation/unknown)

The orientation of the device is unknown.

[`UIInterfaceOrientation.portrait`](/documentation/UIKit/UIInterfaceOrientation/portrait)

The device is in portrait mode, with the device upright and the Home button on the bottom.

[`UIInterfaceOrientation.portraitUpsideDown`](/documentation/UIKit/UIInterfaceOrientation/portraitUpsideDown)

The device is in portrait mode but is upside down, with the device upright and the Home button at the top.

[`UIInterfaceOrientation.landscapeLeft`](/documentation/UIKit/UIInterfaceOrientation/landscapeLeft)

The device is in landscape mode, with the device upright and the Home button on the left.

[`UIInterfaceOrientation.landscapeRight`](/documentation/UIKit/UIInterfaceOrientation/landscapeRight)

The device is in landscape mode, with the device upright and the Home button on the right.

### Orientation Checks

[`isLandscape`](/documentation/UIKit/UIInterfaceOrientation/isLandscape)

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

[`isPortrait`](/documentation/UIKit/UIInterfaceOrientation/isPortrait)

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



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)