I have this function in my Objective-c framework:
- (BOOL)startWithAccount(NSString*)account andUser:(NSString*)user error:(NSError**)error
And I want to call it from Swift code, so I create a class and call it:
self.loginState.start(withAccount: ACCOUNT_KEY, andUser: USER_ID)
But the autoComplete does not give me the option to call the error parameter and the return value is not Bool:
var result: ()? = try? self.loginState.start(withAccount: ACCOUNT_KEY, andUser: USER_ID)
and the result value is nil. any idea what is the problem?