I am trying to add a camera function to my app, but these message keeps appearing on my screen and I can not fin a solution for it. ANY EXAMPLES TO REPLACE WITH?
func setupInputOutput(){
do {
let captureDeviceInput = try AVCaptureDeviceInput(device: currentCamera!);captureSession.addInput(captureDeviceInput)
photoOutput?.setPreparedPhotoSettingsArray([AVCapturePhotoSettings(format:[AVVideoCodecKey: AVVideoCodecType.jpeg])], completionHandler: nil)
} catch {print(error)