Skip to content

Instantly share code, notes, and snippets.

@tonisuter
Created September 12, 2016 13:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tonisuter/27d5fb00679481477d56f5e8a4ef84ce to your computer and use it in GitHub Desktop.
Save tonisuter/27d5fb00679481477d56f5e8a4ef84ce to your computer and use it in GitHub Desktop.
@IBAction func captureImageWithQRCode(_ sender: UIButton) {
let solutionLogger = SolutionLogger(viewController: self)
solutionLogger.scanQRCodeAndCaptureImage { (qrCode: String, image: UIImage) in
// use qrCode and image
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment