---
title: portrait
framework: developertoolssupport
role: symbol
role_heading: Type Property
path: developertoolssupport/previewtrait/portrait
---

# portrait

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

## Declaration

```swift
@MainActor static var portrait: PreviewTrait<Preview.ViewTraits> { get }
```

## Discussion

Discussion This is the same as portrait and is the default orientation if you don’t specify one.

## See Also

### Getting an orientation

- [portraitUpsideDown](developertoolssupport/previewtrait/portraitupsidedown.md)
- [landscapeLeft](developertoolssupport/previewtrait/landscapeleft.md)
- [landscapeRight](developertoolssupport/previewtrait/landscaperight.md)
