Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
private lazy var imagePicker: UIImagePickerController = {
let picker = UIImagePickerController()
picker.sourceType = .savedPhotosAlbum
picker.modalPresentationStyle = .currentContext
picker.delegate = self as! (UIImagePickerControllerDelegate & UINavigationControllerDelegate)
return picker
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment