---
title: InterfaceOrientation
framework: swiftui
role: symbol
role_heading: Structure
path: swiftui/interfaceorientation
---

# InterfaceOrientation

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

## Declaration

```swift
struct InterfaceOrientation
```

## Overview

Overview By default, device previews appear right side up, using orientation portrait. You can change the orientation with a call to the previewInterfaceOrientation(_:) modifier: struct CircleImage_Previews: PreviewProvider {     static var previews: some View {         CircleImage()             .previewInterfaceOrientation(.landscapeRight)     } }

## Topics

### Getting an orientation

- [portrait](swiftui/interfaceorientation/portrait.md)
- [portraitUpsideDown](swiftui/interfaceorientation/portraitupsidedown.md)
- [landscapeLeft](swiftui/interfaceorientation/landscapeleft.md)
- [landscapeRight](swiftui/interfaceorientation/landscaperight.md)

## Relationships

### Conforms To

- [CaseIterable](swift/caseiterable.md)
- [Equatable](swift/equatable.md)
- [Identifiable](swift/identifiable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Customizing a preview

- [previewDevice(_:)](swiftui/view/previewdevice(_:).md)
- [PreviewDevice](swiftui/previewdevice.md)
- [previewLayout(_:)](swiftui/view/previewlayout(_:).md)
- [previewInterfaceOrientation(_:)](swiftui/view/previewinterfaceorientation(_:).md)
