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

# DataScannerViewController.RecognizedDataType

A type of data that the scanner recognizes.

```
struct RecognizedDataType
```

## Topics

### Recognizing text

[`text(languages:textContentType:)`](/documentation/VisionKit/DataScannerViewController/RecognizedDataType/text(languages:textContentType:))

Creates a data type for text and information the scanner finds in
text.

[`TextContentType`](/documentation/VisionKit/DataScannerViewController/TextContentType)

Types of text that a data scanner recognizes.

### Recognizing machine-readable codes

[`barcode(symbologies:)`](/documentation/VisionKit/DataScannerViewController/RecognizedDataType/barcode(symbologies:))

Creates a data type for barcodes the use the specified symbologies.

### Hashing and comparing

[`hash(into:)`](/documentation/VisionKit/DataScannerViewController/RecognizedDataType/hash(into:))

Hashes the components of this value using the specified hasher.

[`==(_:_:)`](/documentation/VisionKit/DataScannerViewController/RecognizedDataType/==(_:_:))

Returns a Boolean value indicating whether two sets have equal
elements.

## Relationships

### Conforms To

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

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

---

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)