You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Example - I am validation domain first after scan because end user may be scan other QR code. So if I am using didFindCode and after that I am validating code if code is not for my app so I start scanning again but in this case camera screen is fluctuating.
Here is my code I am using QRCodeReaderView for custom view
reader.didFindCode = {[weak self] result in
guard let `self` = self else { return }
let url = result.value
let url1 = URL.init(string: url)
if let baseUrl = url1?.host{
if baseUrl == "domain.co" || baseUrl == "domainName.co"{
// Some Code Validation
}
}else{
self.snackbar.text = "Invlid QR code"
MDCSnackbarManager.show(self.snackbar)
self.reader.startScanning()
}
}
}
reader.startScanning()
So please let me know if I am missing anything.
Thanks for great QR example
The text was updated successfully, but these errors were encountered:
Hi,
I am trying to stop camera after validation code.
Example - I am validation domain first after scan because end user may be scan other QR code. So if I am using didFindCode and after that I am validating code if code is not for my app so I start scanning again but in this case camera screen is fluctuating.
Here is my code I am using QRCodeReaderView for custom view
So please let me know if I am missing anything.
Thanks for great QR example
The text was updated successfully, but these errors were encountered: