---
title: UIPencilHoverPose
framework: uikit
role: symbol
role_heading: Class
path: uikit/uipencilhoverpose
---

# UIPencilHoverPose

An object that describes the hover pose of Apple Pencil during an interaction like double tap or squeeze.

## Declaration

```swift
@MainActor class UIPencilHoverPose
```

## Overview

Overview Use the hover pose of Apple Pencil to support more complex interactions in response to a double tap or squeeze. Information about the hover pose — such as azimuth, altitude, and hover distance — is available when a person holds a supported model of Apple Pencil close to the screen during a double tap or squeeze. The following code example shows how to use the location of a hover pose to present a contextual palette near the tip of Apple Pencil. func pencilInteraction(_ interaction: UIPencilInteraction,                        didReceiveSqueeze squeeze: UIPencilInteraction.Squeeze) {     let preferredAction = UIPencilInteraction.preferredSqueezeAction          if preferredAction == .showContextualPalette, squeeze.phase == .ended {         if let anchorPoint = squeeze.hoverPose?.location {             presentContextualPalette(atLocation: anchorPoint)         }     } }

## Topics

### Getting the hover characteristics

- [location](uikit/uipencilhoverpose/location.md)
- [altitudeAngle](uikit/uipencilhoverpose/altitudeangle.md)
- [azimuthAngle](uikit/uipencilhoverpose/azimuthangle.md)
- [azimuthUnitVector](uikit/uipencilhoverpose/azimuthunitvector.md)
- [rollAngle](uikit/uipencilhoverpose/rollangle.md)
- [zOffset](uikit/uipencilhoverpose/zoffset.md)

## Relationships

### Inherits From

- [NSObject](objectivec/nsobject-swift.class.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)
- [Sendable](swift/sendable.md)

## See Also

### Apple Pencil interactions in UIKit

- [UIPencilInteraction](uikit/uipencilinteraction.md)
- [UIPencilInteractionDelegate](uikit/uipencilinteractiondelegate.md)
- [UIPencilInteraction.Tap](uikit/uipencilinteraction/tap.md)
- [UIPencilInteraction.Squeeze](uikit/uipencilinteraction/squeeze.md)
- [UIPencilInteraction.Phase](uikit/uipencilinteraction/phase.md)
