I am trying to send the request for login but I am getting two error like:

Use of unresolved identifier 'AlmofireService'

Cannot convert value of type 'UIViewController.Type' to expected argument type 'UIViewController'

//"Cannot convert value of type 'UIViewController.Type' to expected argument type 'UIViewController'"

WebService.requestService(url: url, method: .post, parameters: parameters, headers: headers, showLoaderFlag: true, viewController: UIViewController, completion: { response in
    if (Reachability.isConnectedToNetwork()) {
        //"Use of unresolved identifier 'AlmofireService'"
        AlmofireService.Manager.request(url, method: method, parameters: parameters, encoding: JSONEncoding.default, headers: headers) .responseJSON { response in
            print("Response - \(response)")

            switch response.result {

0 Answers