---
title: "previewInterfaceOrientation(_:)"
framework: swiftui
role: symbol
role_heading: Instance Method
path: "swiftui/view/previewinterfaceorientation(_:)"
---

# previewInterfaceOrientation(_:)

Overrides the orientation of the preview.

## Declaration

```swift
nonisolated func previewInterfaceOrientation(_ value: InterfaceOrientation) -> some View

```

## Parameters

- `value`: An orientation to use for preview.

## Return Value

Return Value A preview that uses the given orientation.

## Discussion

Discussion By default, device previews appear right side up, using orientation portrait. You can change the orientation of a preview using one of the values in the InterfaceOrientation structure: struct CircleImage_Previews: PreviewProvider {     static var previews: some View {         CircleImage()             .previewInterfaceOrientation(.landscapeRight)     } }

## See Also

### Customizing a preview

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