---
title: rollAngle
framework: UIKit
role: symbol
role_heading: Instance Property
platforms: [iOS 17.5+, iPadOS 17.5+, Mac Catalyst 17.5+, visionOS 1.2+]
path: uikit/uihovergesturerecognizer/4391655-rollangle
---

# rollAngle

A value that represents the current barrel-roll angle of Apple Pencil.

## Declaration

```swift
var rollAngle: CGFloat { get }
```

## Discussion

For models of Apple Pencil that don’t support barrel-roll angle data, the value of this property is `0`.

## See Also

### Supporting Apple Pencil hover

- [altitudeAngle](altitudeangle.md)
- [azimuthAngle(in:)](azimuthangle(in:).md)
- [azimuthUnitVector(in:)](azimuthunitvector(in:).md)
- [zOffset](zoffset.md)
