Skip to content

Instantly share code, notes, and snippets.

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 iosdevie/d9b6be887ab6fce465e389fcbdc1bf02 to your computer and use it in GitHub Desktop.
Save iosdevie/d9b6be887ab6fce465e389fcbdc1bf02 to your computer and use it in GitHub Desktop.
func imagePickerController(_ picker: UIImagePickerController,
didFinishPickingMediaWithInfo info: [UIImagePickerController.InfoKey : Any]) {
dismiss(animated: true) {
if let image = info[UIImagePickerController.InfoKey.originalImage] as? UIImage {
self.imageView?.image = image
self.processImage(image)
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment