<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "VisionKit",
  "identifier" : "/documentation/VisionKit/RecognizedItem",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "VisionKit"
    ],
    "preciseIdentifier" : "s:9VisionKit14RecognizedItemO"
  },
  "title" : "RecognizedItem"
}
-->

# RecognizedItem

An item that the data scanner recognizes in the camera’s live video.

```
enum RecognizedItem
```

## Overview

A `RecognizedItem` enumeration contains the data for an item that the
scanner identifies, such as the location, bounds, and content of the item.
For text items, the content is the selected string, and for barcodes, it’s
the encoded payload string.

## Topics

### Machine-readable items

[`case barcode(RecognizedItem.Barcode)`](/documentation/VisionKit/RecognizedItem/barcode(_:))

A machine-readable barcode.

[`struct Barcode`](/documentation/VisionKit/RecognizedItem/Barcode)

An object that represents a machine-readable code that the scanner
recognizes.

### Text items

[`case text(RecognizedItem.Text)`](/documentation/VisionKit/RecognizedItem/text(_:))

Text or data the analyzer detects in text.

[`struct Text`](/documentation/VisionKit/RecognizedItem/Text)

An object that represents a text item that the scanner recognizes.

### Item location

[`var bounds: RecognizedItem.Bounds`](/documentation/VisionKit/RecognizedItem/bounds-swift.property)

The four corners of the recognized item in view coordinates.

[`struct Bounds`](/documentation/VisionKit/RecognizedItem/Bounds-swift.struct)

An object that represents the four corners of a recognized item.

### Item identification

[`var id: UUID`](/documentation/VisionKit/RecognizedItem/id)

A unique identifier for the recognized item.

## Relationships

### Conforms To

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

---

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)