In my swift app, I am sending mail to the registered mail ID which is register in parse.com. I searched in docs, Objective c code is having. I couldn't convert it into SWIFT. I am receiving error. My code is below.
//OBJECTIVE C
[PFCloud callFunctionInBackground:@"hello"
withParameters:@{}
block:^(NSString *result, NSError *error) {
if (!error) {
// result is @"Hello world!"
}
}];
//MY SWIFT CODING
PFCloud.callFunctionInBackground("hello", withParameters: {}, block: {(result: String, error: NSError)} )
//ERROR RECEIVING that conversion not happening.
Kindly guide me.