Created
May 3, 2017 20:36
-
-
Save b-r-o/30a0309ab7ed68c7bdda824ca0ed5029 to your computer and use it in GitHub Desktop.
Remove the current input device
This file contains 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
guard let currentCaptureInput = self.captureSession.inputs.first as? AVCaptureInput else { return } | |
self.captureSession.removeInput(currentCaptureInput) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment