---
title: BarcodeAnchor
framework: arkit
role: symbol
role_heading: Structure
path: arkit/barcodeanchor
---

# BarcodeAnchor

A barcode’s position in a person’s surroundings.

## Declaration

```swift
struct BarcodeAnchor
```

## Overview

Overview A BarcodeAnchor describes a barcode that ARKit detects in a person’s surroundings. A barcode anchor has exactly one BarcodeSymbology that indicates which type of barcode the framework detects. It also includes properties, such as the barcode’s payload data,  which is a decoded string value of that data.

## Topics

### Getting barcode information

- [extent](arkit/barcodeanchor/extent.md)
- [originFromAnchorTransform](arkit/barcodeanchor/originfromanchortransform.md)
- [payloadData](arkit/barcodeanchor/payloaddata.md)
- [payloadString](arkit/barcodeanchor/payloadstring.md)
- [symbology](arkit/barcodeanchor/symbology-swift.property.md)
- [BarcodeAnchor.Symbology](arkit/barcodeanchor/symbology-swift.enum.md)
- [id](arkit/barcodeanchor/id.md)

### Instance Properties

- [description](arkit/barcodeanchor/description.md)

### Default Implementations

- [ARKitCoordinateSpaceProviding Implementations](arkit/barcodeanchor/arkitcoordinatespaceproviding-implementations.md)

## Relationships

### Conforms To

- [ARKitCoordinateSpaceProviding](arkit/arkitcoordinatespaceproviding.md)
- [Anchor](arkit/anchor.md)
- [Copyable](swift/copyable.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Escapable](swift/escapable.md)
- [Identifiable](swift/identifiable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Barcode detection

- [BarcodeDetectionProvider](arkit/barcodedetectionprovider.md)
