Fix QR code scanner cannot be cancelled
This commit is contained in:
parent
eb86b4cb05
commit
79744fc713
2 changed files with 4 additions and 2 deletions
|
|
@ -14,6 +14,9 @@ class OTPScannerController: QRScannerController {
|
|||
|
||||
var scannedOTP: String?
|
||||
|
||||
@IBAction func pressCancel(_ sender: UIBarButtonItem) {
|
||||
navigationController?.popViewController(animated: true)
|
||||
}
|
||||
// MARK: - AVCaptureMetadataOutputObjectsDelegate Methods
|
||||
func captureOutput(_ captureOutput: AVCaptureOutput!, didOutputMetadataObjects metadataObjects: [Any]!, from connection: AVCaptureConnection!) {
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue