Contents

recognizedItems

An asynchronous array of items that the data scanner currently recognizes in the camera’s live video.

Declaration

@MainActor var recognizedItems: AsyncStream<[RecognizedItem]> { get }

Discussion

You can use this property instead of the DataScannerViewControllerDelegate protocol methods to track the recognized items in real time. To get the changes between arrays, use the difference(from:) method. For more information on asynchronous streams, see Concurrency.

Text items in this array appear in the reading order of the language and region.

See Also

Scanning and recognizing items