- Clone or download the sample project.
- Drag and drop Scanner folder on your project.
- Implement Code as following
let scanner = DGQRCodeScanner.show()
scanner?.onSuccess = { [weak self] result in
self?.messageLabel.text = "Result from Scan is \n \(result)"
}
DO NOT forget to provide access messege on plist. just go to info.plist file , do right click -> open as -> source code and add following line below
<key>NSCameraUsageDescription</key>
<string>We need to access your camera for scanning QR code</string>