funcimageScannerController(_scanner: ImageScannerController, didFailWithErrorerror: Error) {
// You are responsible for carefully handling the errorprint(error)
}
funcimageScannerController(_scanner: ImageScannerController, didFinishScanningWithResultsresults: ImageScannerResults) {
// The user successfully scanned an image, which is available in the ImageScannerResults// You are responsible for dismissing the ImageScannerController scanner.dismiss(animated: true)
}
funcimageScannerControllerDidCancel(_scanner: ImageScannerController) {
// The user tapped 'Cancel' on the scanner// You are responsible for dismissing the ImageScannerController scanner.dismiss(animated: true)
}

Example Implementation

Contributing

As the creators, and maintainers of this project, we're glad to invite contributors to help us stay up to date. Please take a moment to review the contributing document in order to make the contribution process easy and effective for everyone involved.