I am implementing a screen that I would like to show the camera image, but I would like to only show the image, not with front camera switching, canceling, or capturing features. Is there any way to do this?
So far I've only been able to show with the features, but I just want to show the image where the camera is pointing, without any functionality. I currently use UIImagePickerController
however searching I also found tutorials that show with AVFoundation
, if you can clarify to me the best of them to do this and how would it be possible.
Current code:
var imagePicker: UIImagePickerController = UIImagePickerController()
imagePicker.delegate = self
imagePicker.allowsEditing = false
imagePicker.sourceType = UIImagePickerControllerSourceType.Camera
imagePicker.view.frame = viewCamera.frame
viewCamera.addSubview(imagePicker.view)