<!--
{
  "availability" : [
    "iOS: 9.1.0 -",
    "iPadOS: 9.1.0 -",
    "macCatalyst: 13.1.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UITouch/azimuthAngle(in:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UITouch(im)azimuthAngleInView:"
  },
  "title" : "azimuthAngle(in:)"
}
-->

# azimuthAngle(in:)

Returns the azimuth angle (in radians) of the stylus.

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

## Parameters

`view`

The view that contains the stylus’s touch. Pass `nil` to get the azimuth angle that is relative to the touch’s window.

## Return Value

The azimuth angle of the stylus, in radians.

## Discussion

In the plane of the screen, the azimuth angle is the direction in which the stylus is pointing. With the tip of the stylus touching the screen, the value of this property is `0` radians when the cap end of the stylus (that is, the end opposite of the tip) points along the positive x axis of the device’s screen. The azimuth angle increases as the user swings the cap end of the stylus in a clockwise direction around the tip.

> Note:
> It is more expensive to get the azimuth angle (as opposed to the azimuth unit vector), but it can also be more convenient

---

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)