twostraws / CodeScanner

A SwiftUI view that is able to scan barcodes, QR codes, and more, and send back what was found.
MIT License
1.01k stars 286 forks source link

html link result #96

Closed FelixKAcheampong closed 1 year ago

FelixKAcheampong commented 1 year ago

The content of the result.string is an html link to a site instead of the qr or barcode code or number

nathanfallet commented 1 year ago

Please provide more details, and information to reproduce.

FelixKAcheampong commented 1 year ago

The result of the qrcode is http://qr.rs/v/675a0

CodeScannerView(codeTypes: [.code128,.qr,.aztec,.code39,.code93,.code39Mod43],showViewfinder: true,shouldVibrateOnSuccess: true) { response in if case let .success(result) = response { print("Found code: \(result.string)") } }

nathanfallet commented 1 year ago

@FelixKAcheampong I don't see what's the problem here. It returns the content of your QR Code, which is this link. Try scanning the code with any other tool and you will get the same link.