ios: fix code scanners only attempting to scan once (#3548)

This commit is contained in:
spaced4ndy
2023-12-13 16:13:05 +04:00
committed by GitHub
parent b6b041490f
commit 67241ff65c
4 changed files with 4 additions and 4 deletions
@@ -17,7 +17,7 @@ struct ScanCodeView: View {
var body: some View {
VStack(alignment: .leading) {
CodeScannerView(codeTypes: [.qr], completion: processQRCode)
CodeScannerView(codeTypes: [.qr], scanMode: .oncePerCode, completion: processQRCode)
.aspectRatio(1, contentMode: .fit)
.cornerRadius(12)
Text("Scan security code from your contact's app.")