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

# verticalDirectionEstimate

The estimation of a nearby object’s vertical position as it relates to the user’s device.

```
var verticalDirectionEstimate: NINearbyObject.VerticalDirectionEstimate { get }
```

## Discussion

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

The framework periodically sets the value of this property when vertical positioning is available. Otherwise, the framework sets the value to [`NINearbyObject.VerticalDirectionEstimate.unknown`](/documentation/NearbyInteraction/NINearbyObject/VerticalDirectionEstimate-swift.enum/unknown).

---

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)