CodeScanner icon indicating copy to clipboard operation
CodeScanner copied to clipboard

Front camera option

Open maikelsgit opened this issue 3 years ago • 2 comments

I would like to use the codescanner on my iPad and use the front facing camera. Can you please add the option to select the front facing camera.

Thanks!!

maikelsgit avatar Jan 15 '22 11:01 maikelsgit

I think a recent update means you can already do this with the videoCaptureDevice parameter:

videoCaptureDevice: AVCaptureDevice.default(.builtInWideAngleCamera, for: .video, position: .front),

I think this gives you what you need? Hope this helps.

cymr0 avatar Jan 15 '22 16:01 cymr0

This worked for me. Thanks.

daver234 avatar Feb 04 '22 22:02 daver234

Checked, it as been added as a parameter in the initializer.

nathanfallet avatar Aug 28 '22 16:08 nathanfallet