Skip to content

Instantly share code, notes, and snippets.

@fitomad
Created September 1, 2018 10:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fitomad/732fa53dd757cfc48fe3e4943694ea57 to your computer and use it in GitHub Desktop.
Save fitomad/732fa53dd757cfc48fe3e4943694ea57 to your computer and use it in GitHub Desktop.
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