dataScanner(_:didUpdate:allItems:)
Responds when the data scanner updates the geometry of an item it recognizes.
Declaration
@MainActor func dataScanner(_ dataScanner: DataScannerViewController, didUpdate updatedItems: [RecognizedItem], allItems: [RecognizedItem])Parameters
- dataScanner:
The data scanner that recognizes the item.
- updatedItems:
The items with geometry that the data scanner changes.
- allItems:
The current items that the data scanner tracks. Text items appear in the reading order of the language and region.
Mentioned in
Discussion
To identify an item in the updatedItems and allItems parameters, use the item’s id property.