I was using Xcode 10.1 and used SWIFT_VERSION 3.0 in Objective-C project. The below code worked fine with Swift 3.
RichTextEditor.swift:
init(frame: CGRect, editAccess: Int) {
super.init(frame:frame)
}
Objective-C class calls above method:
self.rchTextControl = [[RichTextEditor alloc] initWithFrame:CGRectMake(2, cellRowHeight, tableView.tableView.bounds.size.width-4, cellMessageHeight-cellRowHeight) editAccess:[sectionCtrlEditAccessValue intValue]];
Above Objective-C code was working with Swift 3 and once I changed it to SWIFT_VERSION 4, the below error occurred.
How can I fix this issue? I was googling this but I could not find a solution.