---
title: altitude
framework: swiftui
role: symbol
role_heading: Instance Property
path: swiftui/pencilhoverpose/altitude
---

# altitude

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

## Declaration

```swift
let altitude: Angle
```

## Discussion

Discussion This value is .zero when the Apple Pencil is parallel to the view’s surface, and is 90 degrees (π/2 radians) when the Apple Pencil is perpendicular to the view’s surface.

## See Also

### Getting the hover characteristics

- [anchor](swiftui/pencilhoverpose/anchor.md)
- [azimuth](swiftui/pencilhoverpose/azimuth.md)
- [location](swiftui/pencilhoverpose/location.md)
- [roll](swiftui/pencilhoverpose/roll.md)
- [zDistance](swiftui/pencilhoverpose/zdistance.md)
