<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macCatalyst: 16.0.0 -",
    "macOS: -",
    "watchOS: 9.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "NearbyInteraction",
  "identifier" : "/documentation/NearbyInteraction/NINearbyObject/horizontalAngle-9ibky",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Nearby Interaction"
    ],
    "preciseIdentifier" : "c:objc(cs)NINearbyObject(py)horizontalAngle"
  },
  "title" : "horizontalAngle"
}
-->

# horizontalAngle

An angle in radians that indicates the azimuthal direction to the nearby object.

```
@property (nonatomic, readonly) float horizontalAngle;
```

## Discussion

The framework sets a value of this property when [`isCameraAssistanceEnabled`](/documentation/NearbyInteraction/NINearbyPeerConfiguration/isCameraAssistanceEnabled) is `true`.

The value of this property is [`NINearbyObjectAngleNotAvailable`](/documentation/NearbyInteraction/NINearbyObjectAngleNotAvailable) when direction is unavailable, such as when the app runs on Apple Watch.

---

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)