Alamofireimage (Swift3) Ambiguous reference to member 'download(

310 views Asked by At

Hi guys i am trying to download a bunch of images in my app using the Alamofireimage library. this is the code that i use and it is basically what they have in their documentation:

let downloader = ImageDownloader()
    for (img):(ImageData) in imgDownloadList
    {
        let urlRequestx = img.downloadUrl
        downloader.download(urlRequestx){ response in
            print(response.request)
            print(response.response)
            debugPrint(response.result)

            if let image = response.result.value {
                print(image)
            }

        }

    }

i got the error

Ambiguous reference to member 'download(_:receiptID:filter:progress:progressQueue:completion:)'

did someone face the same problem? Thanks a lot.

0

There are 0 answers