Last active
September 28, 2021 13:22
-
-
Save paulofierro/1f4f7a285c696bd0dba6c9fc17b9d757 to your computer and use it in GitHub Desktop.
Code sample for https://paulofierro.com/blog/2021/9/27/when-barcodes-attack
This file contains hidden or 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
let request = VNDetectBarcodesRequest(completionHandler: nil) | |
if #available(iOS 15, *) { | |
request.symbologies = [.pdf417] | |
} else { | |
request.symbologies = [.PDF417] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment