---
title: "dataScanner(_:didTapOn:)"
framework: visionkit
role: symbol
role_heading: Instance Method
path: "visionkit/datascannerviewcontrollerdelegate/datascanner(_:didtapon:)"
---

# dataScanner(_:didTapOn:)

Responds when a person taps an item that the data scanner recognizes.

## Declaration

```swift
@MainActor func dataScanner(_ dataScanner: DataScannerViewController, didTapOn item: RecognizedItem)
```

## Parameters

- `dataScanner`: The data scanner with the zoom factor that changes.
- `item`: The item that a person taps.

## Mentioned in

Scanning data with the camera

## Discussion

Discussion Implement this method to take some action, depending on the type of data that a person taps.
