<!--
{
  "availability" : [
    "iOS: 17.5.0 -",
    "iPadOS: 17.5.0 -",
    "macCatalyst: 17.5.0 -",
    "macOS: 14.5.0 -",
    "visionOS: 26.2.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/PencilHoverPose/roll",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI15PencilHoverPoseV4rollAA5AngleVvp"
  },
  "title" : "roll"
}
-->

# roll

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

```
let roll: Angle
```

## Discussion

This value is `.zero` when the user starts using their Apple Pencil, and
changes relative to that initial angle as the user rolls the Apple
Pencil alongside its barrel. If the Apple Pencil doesn’t support
detecting its barrel roll angle, this property is always `.zero`.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)