Created
October 25, 2019 16:13
-
-
Save rickwierenga/3c2cd3f74e7948002251991527a60c6b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
lazy var detectBarcodeRequest: VNDetectBarcodesRequest = { | |
return VNDetectBarcodesRequest(completionHandler: { (request, error) in | |
guard error == nil else { | |
self.showAlert(withTitle: "Barcode Error", message: error!.localizedDescription) | |
return | |
} | |
self.processClassification(for: request) | |
}) | |
}() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment