iosiphoneswiftuiimagepickercontrollercamera-overlay

Enable camera roll thumbnail in UIImagePickerController


Is there a way to display the camera roll thumbnail (marked in red below) inside a UIImagePickerController? The right image shows what a default UIImagePickerController looks like with a camera source.

enter image description here enter image description here

This is how I present the camera:

func openCamera() {
    if(UIImagePickerController .isSourceTypeAvailable(UIImagePickerControllerSourceType.Camera)) {
        picker!.sourceType = UIImagePickerControllerSourceType.Camera
        picker!.showsCameraControls = true
        picker!.cameraDevice = UIImagePickerControllerCameraDevice.Front
        self.presentViewController(picker!, animated: true, completion: nil)
    } else {
        NSLog("No camera")
        openGallary()
    }
}

This post claims that it was not possible in 2010, but I'm hoping for new times.


Solution

  • I ended up using DBCamera, which lets you customize the entire camera view pretty easily.

    I do believe that Lyndsey Scott is right though, it can be done by just adding a custom subview to the default camera view.