Skip to content

Instantly share code, notes, and snippets.

@b-r-o
Created May 3, 2017 20:37
Show Gist options
  • Save b-r-o/c9d85b567e8aa68bf60daae60667f4ef to your computer and use it in GitHub Desktop.
Save b-r-o/c9d85b567e8aa68bf60daae60667f4ef to your computer and use it in GitHub Desktop.
Remove the output
guard let currentCaptureOutput = self.captureSession.outputs.first as? AVCaptureOutput else { return }
self.captureSession.removeOutput(currentCaptureOutput)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment