 				imagePicker.cameraDevice = cameraDevice
 			}
 			imagePicker.allowsEditing = canEditImage
-			self.present(imagePicker,
-			             animated: false,
-			             completion: nil)
+			self.present(imagePicker, animated: false, completion: nil)
 		} else {
 			self.handler?(SRKCameraResponse.cancelled)
 			self.dismiss(animated: false, completion: nil)

}

public struct SRKCamera {
	public static let shared = SRKCameraViewController()
}

open class SRKCameraViewController: UIViewController, UIImagePickerControllerDelegate, UINavigationControllerDelegate {

    open var viewDidAppearMoreThanOnce = false
    open var canEditImage = true
	open var sourceType: UIImagePickerControllerSourceType = .photoLibrary
    open var cameraDevice: UIImagePickerControllerCameraDevice = .front
	open var handler: ((SRKCameraResponse) -> Void)?

    override open func viewDidLoad() {
        super.viewDidLoad()
    }

    override open func viewDidAppear(_ animated: Bool) {
		super.viewDidAppear(animated)
		self.presentCamera()
    }

            selectedPhoto = info[UIImagePickerControllerOriginalImage] as! UIImage
        }
		self.handler?(SRKCameraResponse.success(selectedPhoto))
		picker.dismiss(animated: false) {
			self.dismiss(animated: false, completion: nil)
		}
    }
	
	func imagePickerControllerDidCancel(_ picker: UIImagePickerController) {
		self.handler?(SRKCameraResponse.cancelled)
		picker.dismiss(animated: false) {
			self.dismiss(animated: false, completion: nil)
		}
	}
}
