Skip to content
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

Merged
merged 8 commits into from
Oct 7, 2018
Merged

Update for Swift 4.2 #32

merged 8 commits into from
Oct 7, 2018

Conversation

mttcrsp
Copy link
Contributor

@mttcrsp mttcrsp commented Oct 5, 2018

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.

@mttcrsp mttcrsp changed the title Feature/swift 4.2 Update for Swift 4.2 Oct 5, 2018
@bcylin
Copy link
Collaborator

bcylin commented Oct 6, 2018

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 {
Copy link
Collaborator

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.

Copy link
Contributor Author

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 👍

@bcylin bcylin merged commit cea5c57 into carousell:master Oct 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants