---
title: viewRotationAngle
framework: arkit
role: symbol
role_heading: Instance Property
platforms: [iOS 27.0+, iPadOS 27.0+]
path: arkit/arsession/viewrotationangle-8847g
---

# viewRotationAngle

The angle, in degrees, to rotate a view by so the ARFrame it displays stays level with the horizon as the device rotates.

## Declaration

```swift
@nonobjc var viewRotationAngle: CGFloat? { get }
```

## Discussion

Discussion Updates in step with the system UI rotation. The value is normalized to [0, 360) (0 at LandscapeRight, 90 at Portrait, 180 at LandscapeLeft, 270 at PortraitUpsideDown), or nil until the angle is available (viewLayer is set and on screen). Read it on demand; implement session(_:didChangeViewRotationAngle:) to react to changes.
