<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macCatalyst: -",
    "watchOS: 9.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "NearbyInteraction",
  "identifier" : "/documentation/NearbyInteraction/NINearbyObject/horizontalAngle-hsg",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Nearby Interaction",
      "NearbyInteraction"
    ],
    "preciseIdentifier" : "s:So14NINearbyObjectC17NearbyInteractionE15horizontalAngleSfSgvp"
  },
  "title" : "horizontalAngle"
}
-->

# horizontalAngle

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

```
var horizontalAngle: Float? { get }
```

## Discussion

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

This property is `nil` 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)