Create APIManage.Swift File. // // APIManager.swift // // Created by Dixit Akabari on 7/1/20. // Copyright © 2020 Dixit Akabari. All rights reserved. // import UIKit import Alamofire open class APIManager : NSObject { // =========== POST API Calling =========== public class func callPostAPI (param: [ String : Any ], URlName: String , controller: UIViewController , withblock: @escaping ( _ response: AnyObject ?)-> Void ){ //check internet connection available or not if ( AppDelegate . getAppDelegate (). connected ()) { ...