When I switch from the old version of swift, I get a warning for
func imagePickerController(_ picker: UIImagePickerController, didFinishPickingMediaWithInfo info: [String: AnyObject])
A warning
The instance method 'imagePickerController (: didFinishPickingMediaWithInfo :)' almost matches the optional requirement 'imagePickerController (: didFinishPickingMediaWithInfo :)' of the UIImagePickerControllerDelegae protocol
The problem is that, as far as I understand, what he is complaining about and what almost coincidence says is 100% the same. How can I resolve this warning?
source share