Swift3 warning imagePickerController almost matches

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?

+5
source share

Source: https://habr.com/ru/post/1265155/


All Articles