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

# azimuthUnitVector(in:)

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

## Declaration

```swift
func azimuthUnitVector(in view: UIView?) -> CGVector
```

## Parameters

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

## Return Value

Return Value A CGVector that represents the azimuth unit vector of the hovering pointing device.

## Discussion

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

## See Also

### Supporting Apple Pencil hover

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