I would like to pass a nil value i.e., optional to one of the parameter value. And it must proceed with the nil value in the Alamofire Post request .It woul
hope this will help you :)
var parameters :[String : AnyObject?] = [ "first_name": "XXXXX", "email" : "1234@gmail.com", "password" : "password"] if let string = base64String where base64String.isEmpty != false { parameters["profile_picture"] = string }