---
title: isPortrait
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uiinterfaceorientation/isportrait
---

# isPortrait

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

## Declaration

```swift
var isPortrait: Bool { get }
```

## Discussion

Discussion The interface orientation can be different than the device orientation. You typically call this function in your view controller code to check the current orientation.

## See Also

### Interface orientation

- [isLandscape](uikit/uiinterfaceorientation/islandscape.md)
