dataScanner(_:didRemove:allItems:)
Responds when the data scanner stops recognizing an item.
Declaration
@MainActor func dataScanner(_ dataScanner: DataScannerViewController, didRemove removedItems: [RecognizedItem], allItems: [RecognizedItem])Parameters
- dataScanner:
The data scanner that recognizes the item.
- removedItems:
The items that the data scanner removes from the Recognizeditems property.
- 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 removedItems and allItems parameters, use the item’s id property.