-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update for Swift 4.2 #32
Conversation
Thanks for the pull request! |
@@ -221,13 +221,13 @@ extension ImagePickerController: UIImagePickerControllerDelegate, UINavigationCo | |||
picker.dismiss(animated: true, completion: nil) | |||
} | |||
|
|||
guard let originalImage = info[UIImagePickerControllerOriginalImage] as? UIImage else { | |||
guard let originalImage = info[UIImagePickerController.InfoKey.originalImage.rawValue] as? UIImage else { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The type of info is changed to [UIImagePickerController.InfoKey: Any]
. The method declaration needs to be updated.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great catch! I fixed it in 92d7fa7 👍
Hi 👋 This PR updates the whole project for Swift 4.2 closing #28. I ran
make bootstrap
as requested by the Contribution Guidelines and performed the migration which was pretty straightforward.