<!--
{
  "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",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI15PencilHoverPoseV"
  },
  "title" : "PencilHoverPose"
}
-->

# PencilHoverPose

A value describing the location and distance of an Apple Pencil hovering in
the area above a view’s bounds.

```
struct PencilHoverPose
```

## Topics

### Getting the hover characteristics

[`altitude`](/documentation/SwiftUI/PencilHoverPose/altitude)

A value that represents the altitude angle of the hovering Apple Pencil.

[`anchor`](/documentation/SwiftUI/PencilHoverPose/anchor)

The location of an Apple Pencil hovering in the area above the view’s
bounds, expressed as a normalized anchor point relative to that view.

[`azimuth`](/documentation/SwiftUI/PencilHoverPose/azimuth)

A value that represents the azimuth angle of a hovering Apple Pencil.

[`location`](/documentation/SwiftUI/PencilHoverPose/location)

The location of an Apple Pencil hovering in the area above the view’s
bounds, expressed as a point in that view’s coordinate space.

[`roll`](/documentation/SwiftUI/PencilHoverPose/roll)

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

[`zDistance`](/documentation/SwiftUI/PencilHoverPose/zDistance)

The normalized distance between the screen and a hovering Apple Pencil.

## Relationships

### Conforms To

[`Hashable`](/documentation/Swift/Hashable)

[`Equatable`](/documentation/Swift/Equatable)

---

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)