---
title: "azimuthAngle(in:)"
framework: uikit
role: symbol
role_heading: Instance Method
path: "uikit/uihovergesturerecognizer/azimuthangle(in:)"
---

# azimuthAngle(in:)

A value that represents the azimuth angle of the hovering pointing device in the specified view.

## Declaration

```swift
func azimuthAngle(in view: UIView?) -> CGFloat
```

## Parameters

- `view`: The view the angle is relative to.

## Return Value

Return Value A CGFloat that represents the azimuth angle of the hovering pointing device.

## Discussion

Discussion If the specified view is nil, the method returns the azimuth angle of the hovering pointing device in the gesture recognizer’s window. This method returns 0 for devices that don’t support azimuth.

## See Also

### Supporting Apple Pencil hover

- [altitudeAngle](uikit/uihovergesturerecognizer/altitudeangle.md)
- [azimuthUnitVector(in:)](uikit/uihovergesturerecognizer/azimuthunitvector(in:).md)
- [rollAngle](uikit/uihovergesturerecognizer/rollangle.md)
- [zOffset](uikit/uihovergesturerecognizer/zoffset.md)
