<!--
{
  "availability" : [
    "iOS: 16.4.0 -",
    "iPadOS: 16.4.0 -",
    "macCatalyst: 16.4.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIHoverGestureRecognizer/azimuthUnitVector(in:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UIHoverGestureRecognizer(im)azimuthUnitVectorInView:"
  },
  "title" : "azimuthUnitVector(in:)"
}
-->

# azimuthUnitVector(in:)

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

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

## Parameters

`view`

The view the vector is relative to.

## Return Value

A <doc://com.apple.documentation/documentation/CoreFoundation/CGVector> that represents the azimuth unit vector of the hovering pointing device.

## 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.

---

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)