In my Project, I use Cloudinary, while I using the following function in Xcode 7.3 it's working fine But in Xcode 8 I got error.
(Cannot convert value of type ([AnyHashable: Any]!,String!,Int!,AnyObject) -> () to expected argument type (CLUploaderCompletion).
How to I solve this error.
uploader.upload(forUpload, options: nil, withCompletion:onCloudinaryCompletion, andProgress:onCloudinaryProgress)
func onCloudinaryCompletion(_ successResult:[AnyHashable: Any]!, errorResult:String!, code:Int, idContext:AnyObject!) {
print("successResult\(successResult)")
}
func onCloudinaryProgress(_ bytesWritten:Int, totalBytesWritten:Int, totalBytesExpectedToWrite:Int, idContext:AnyObject!) {
print("onCloudinaryProgress")
}
Screenshot of the error: