Skip to content

Instantly share code, notes, and snippets.

@danielCarlosCE
Created December 24, 2016 01:44
Show Gist options
  • Save danielCarlosCE/4c728d3a95c09ec8b51b981dcc7feb2e to your computer and use it in GitHub Desktop.
Save danielCarlosCE/4c728d3a95c09ec8b51b981dcc7feb2e to your computer and use it in GitHub Desktop.
extension AVCodeReader: CodeReader {
func startReading(completion: @escaping (String) -> Void) {
self.didRead = completion
captureSession?.startRunning()
}
func stopReading() {
captureSession?.stopRunning()
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment