I have an objective-c method:
-(DeviceVar *)var:(NSString*)valid
In objective-c, I just use it like:
DeviceVar* rtc = [device var:@"rtc"];
But in swift, I have a problem using this method:
let rtc = device.var("etc")
since var is a keyword, I think, so my question is how to make it work.
source share