JonasGessner / JonasGessner/JGProgressHUD
'originalImage' cannot be resolved without a contextual type
- Dominant language
- Objective-C
- Stars
- 3.4k
- Forks
- 334
- PR merge metrics
- No merged PRs in 30d
Description
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?
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing the reported error in the UIImagePickerController delegate method using the Swift code shown in the issue. Check whether the failure is caused by JGProgressHUD and Swift 6 compatibility; done requires a confirmed project-specific cause and a clearly documented fix or compatibility determination.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ios, swift
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 15/100