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

View File

@@ -21,7 +21,7 @@ struct ScanProtocolServer: View {
.font(.largeTitle)
.bold()
.padding(.vertical)
CodeScannerView(codeTypes: [.qr], completion: processQRCode)
CodeScannerView(codeTypes: [.qr], scanMode: .oncePerCode, completion: processQRCode)
.aspectRatio(1, contentMode: .fit)
.cornerRadius(12)
.padding(.top)