We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I'm trying to add this to my Swift app, but I keep getting an error:
func imagePickerController(_ picker: UIImagePickerController, didFinishPickingMediaWithInfo info: [UIImagePickerController.InfoKey : Any]) { if let selectedImage = info[.originalImage] as? UIImage { imageView.image = selectedImage } else { print("Failed to retrieve the original image") } picker.dismiss(animated: true, completion: nil) }
Error: Reference to member 'originalImage' cannot be resolved without a contextual type
Is this properly working with Swift 6?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I'm trying to add this to my Swift app, but I keep getting an error:
func imagePickerController(_ picker: UIImagePickerController, didFinishPickingMediaWithInfo info: [UIImagePickerController.InfoKey : Any]) {
if let selectedImage = info[.originalImage] as? UIImage {
imageView.image = selectedImage
} else {
print("Failed to retrieve the original image")
}
picker.dismiss(animated: true, completion: nil)
}
Error: Reference to member 'originalImage' cannot be resolved without a contextual type
Is this properly working with Swift 6?
The text was updated successfully, but these errors were encountered: