Alamofire: Ambiguous reference to member 'request' in Swift 3

Created on 28 Aug 2016  路  1Comment  路  Source: Alamofire/Alamofire

Alamofire.request(.GET, imgURLString).response {
    (request, response, data, error) in
    let image = UIImage(data: data!, scale: 7)
    onComplete(image: image!)

Doesn't compile because:
Ambiguous reference to member 'request(_:withMethod:parameters:encoding:headers:)'

question

Most helpful comment

We've completely changed the APIs in the swift3 branch. You'll need to adjust your app code accordingly. Nothing has been officially released, so our documentation is still out-of-date on the swift3 branch. We're waiting to update it all until we finalize all the code changes.

Cheers. 馃嵒

>All comments

We've completely changed the APIs in the swift3 branch. You'll need to adjust your app code accordingly. Nothing has been officially released, so our documentation is still out-of-date on the swift3 branch. We're waiting to update it all until we finalize all the code changes.

Cheers. 馃嵒

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Footjy picture Footjy  路  3Comments

solomon23 picture solomon23  路  3Comments

lvandal picture lvandal  路  3Comments

simonliotier picture simonliotier  路  3Comments

dpstart picture dpstart  路  3Comments