<!--
{
  "availability" : [
    "visionOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "ARKit",
  "identifier" : "/documentation/ARKit/ObjectAnchor",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "ARKit"
    ],
    "preciseIdentifier" : "s:5ARKit12ObjectAnchorV"
  },
  "title" : "ObjectAnchor"
}
-->

# ObjectAnchor

A reference object ARKit is tracking.

```
struct ObjectAnchor
```

## Overview

You use object anchors to learn about the position and orientation of a real-world object.

## Topics

### Inspecting an object anchor

[`var boundingBox: ObjectAnchor.AxisAlignedBoundingBox`](/documentation/ARKit/ObjectAnchor/boundingBox)

The bounding box of an anchor.

[`struct AxisAlignedBoundingBox`](/documentation/ARKit/ObjectAnchor/AxisAlignedBoundingBox)

Values that describe an axis-aligned bounding box.

[`var description: String`](/documentation/ARKit/ObjectAnchor/description)

A textual representation of this anchor.

[`var isTracked: Bool`](/documentation/ARKit/ObjectAnchor/isTracked)

A Boolean value that indicates whether the framework is currently tracking an object anchor.

[`var originFromAnchorTransform: simd_float4x4`](/documentation/ARKit/ObjectAnchor/originFromAnchorTransform)

The transform from the object anchor to the origin coordinate system.

[`var referenceObject: ReferenceObject`](/documentation/ARKit/ObjectAnchor/referenceObject)

The reference object that an anchor corresponds to.

[`var inputFile: URL?`](/documentation/ARKit/ReferenceObject/inputFile)

The input file the framework uses for loading a reference object.

[`var usdzFile: URL?`](/documentation/ARKit/ReferenceObject/usdzFile)

The trained USDZ file, if the reference object includes one.

[`struct ReferenceObject`](/documentation/ARKit/ReferenceObject)

An object the framework can track.

### Inspecting and comparing anchors

[`var id: UUID`](/documentation/ARKit/ObjectAnchor/id-swift.property)

The unique identifier of this anchor.

[`typealias ID`](/documentation/ARKit/ObjectAnchor/ID-swift.typealias)

A type representing the stable identity of the entity associated with
an instance.

### Operators

[`static func == (ObjectAnchor, ObjectAnchor) -> Bool`](/documentation/ARKit/ObjectAnchor/==(_:_:))

Returns a Boolean value indicating whether two object anchors are equal.

### Default Implementations

[ARKitCoordinateSpaceProviding Implementations](/documentation/ARKit/ObjectAnchor/ARKitCoordinateSpaceProviding-Implementations)

## Relationships

### Conforms To

[`Sendable`](/documentation/Swift/Sendable)

[`CustomStringConvertible`](/documentation/Swift/CustomStringConvertible)

[`ARKitCoordinateSpaceProviding`](/documentation/ARKit/ARKitCoordinateSpaceProviding)

[`Anchor`](/documentation/ARKit/Anchor)

[`Escapable`](/documentation/Swift/Escapable)

[`Identifiable`](/documentation/Swift/Identifiable)

[`TrackableAnchor`](/documentation/ARKit/TrackableAnchor)

[`Equatable`](/documentation/Swift/Equatable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Copyable`](/documentation/Swift/Copyable)

---

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)