Module 'Alamofire' has no member named 'request'
I'm new to iOS Development, I installed Alamofire as said in README, but I have this error as other users and I don't know how to solve it.
Solution 1:
2019 UPDATE
If you have this error and you use 'alamofire5' branch just change Alamofire.request
to AF.request
.
Solution 2:
if you are using new Alamofire 5.xxx
then you will use AF
instead of Almofire
it like that
AF.upload(multipartFormData: <#T##(MultipartFormData) -> Void#>, to: <#T##URLConvertible#>)
AF.request(<#T##url: URLConvertible##URLConvertible#>)
AF.download(<#T##url: URLConvertible##URLConvertible#>)