Created
May 4, 2016 02:42
-
-
Save remirobert/b5f1659075f04edb56ce8256e1c44a0a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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