Skip to content

Instantly share code, notes, and snippets.

@remirobert
Created May 4, 2016 02:42
Show Gist options
  • Save remirobert/b5f1659075f04edb56ce8256e1c44a0a to your computer and use it in GitHub Desktop.
Save remirobert/b5f1659075f04edb56ce8256e1c44a0a to your computer and use it in GitHub Desktop.
import UIKit
import CameraEngine
class ViewController: UIViewController {
let cameraEngine = CameraEngine()
override func viewDidLoad() {
super.viewDidLoad()
self.cameraEngine.startSession()
self.cameraEngine.metadataDetection = .QRCode
self.cameraEngine.blockCompletionCodeDetection = { codeObject in
let valueCode = codeObject.stringValue
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment