[Solved] How to convert BarCodeKit Objective-C code into Swift?
[ad_1] Looking at the headers for BarCodeKit, I’d suggest you use the class method: + (instancetype)code39WithContent:(NSString *)content error:(NSError *__autoreleasing *)error; E.g. in Swift 4.2: do { let barcode = try BCKCode39Code.code39(withContent: string) // or use rendition with `withModulo43` parameter imageView.image = UIImage(barCode: barcode, options: nil) } catch { print(error) } 4 [ad_2] solved How to … Read more