<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -",
    "macCatalyst: 15.0.0 -",
    "macOS: 12.0.0 -",
    "tvOS: 15.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 8.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/InterfaceOrientation",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI20InterfaceOrientationV"
  },
  "title" : "InterfaceOrientation"
}
-->

# InterfaceOrientation

The orientation of the interface from the user’s perspective.

```
struct InterfaceOrientation
```

## Overview

By default, device previews appear right side up, using orientation
[`portrait`](/documentation/SwiftUI/InterfaceOrientation/portrait). You can change the orientation
with a call to the [`previewInterfaceOrientation(_:)`](/documentation/SwiftUI/View/previewInterfaceOrientation(_:)) modifier:

```
struct CircleImage_Previews: PreviewProvider {
    static var previews: some View {
        CircleImage()
            .previewInterfaceOrientation(.landscapeRight)
    }
}
```

## Topics

### Getting an orientation

[`static let portrait: InterfaceOrientation`](/documentation/SwiftUI/InterfaceOrientation/portrait)

The device is in portrait mode, with the top of the device on top.

[`static let portraitUpsideDown: InterfaceOrientation`](/documentation/SwiftUI/InterfaceOrientation/portraitUpsideDown)

The device is in portrait mode, but is upside down.

[`static let landscapeLeft: InterfaceOrientation`](/documentation/SwiftUI/InterfaceOrientation/landscapeLeft)

The device is in landscape mode, with the top of the device on the left.

[`static let landscapeRight: InterfaceOrientation`](/documentation/SwiftUI/InterfaceOrientation/landscapeRight)

The device is in landscape mode, with the top of the device on the right.

## Relationships

### Conforms To

[`Equatable`](/documentation/Swift/Equatable)

[`Identifiable`](/documentation/Swift/Identifiable)

[`Sendable`](/documentation/Swift/Sendable)

[`CaseIterable`](/documentation/Swift/CaseIterable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

---

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)