I am trying to use this class
I've imported it into my bridging header and everything. I have other Objective C class as well. XCode seems to detect the class and I could initialize it normally.
However, Swift does not seem to recognize the constructor for this class
Here is how it is initialized in Objective C
REDActionSheet *actionSheet = [[REDActionSheet alloc] initWithCancelButtonTitle:@"Cancel" destructiveButtonTitle:nil otherButtonTitlesList:@"1", @"2", @"3", nil];
But when I try to use it in Swift. Swift does not recognize the Constructor. For other libraries, Swift seem to be intelligent enough to detect the Constructor. The XCode code completion does not seem to detect the constructor as well
I can only initialize it like this.
var actionSheet: REDActionSheet = RedActionSheet();
Normally XCode would be intelligent enough to give me the Constructor like this
var actionSheet: REDActionSheet = REDActionSheet(cancelButtonTitle: "Cancel", destructiveButtonTitle: "Destroy", otherButtonTitlesList: ["1", "2", "3"], nil);
But for this class, it doesnt seem to be the case
Since I have no experience in Objective C. I have no idea what makes Swift to recognize the Objective C Constructor
Any idea please?