-
-
Save fitomad/732fa53dd757cfc48fe3e4943694ea57 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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