Created
May 19, 2020 15:52
-
-
Save brettfazio/23b3f452be641a25c5e85a4fc391713e to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| func imagePickerController(_ picker: UIImagePickerController, didFinishPickingMediaWithInfo info: [UIImagePickerController.InfoKey : Any]) { | |
| self.imagePicker.dismiss(animated: true) | |
| guard let image = info[.editedImage] as? UIImage else { | |
| print("No image found.") | |
| return | |
| } | |
| // At this point we know we have an image. | |
| // Print out the scale and size as a test: | |
| print("\(image.scale) \(image.size)") | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment