Closed robertmryan closed 5 years ago
FYI, in case you're wondering why I did this, you really should be able to write Swift code like:
do {
let barcode = try BCKEAN8Code(content: string)
imageView.image = UIImage(barCode: barcode, options: nil)
} catch {
print(error)
}
But the presence of this deprecated header is preventing that from working correctly. By marking this deprecated method as being unavailable to Swift, the compiler can correctly deduce that it should use - [initWithContents:error:]
instead.
robertmryan , Thank you so much
robertmryan , Thanks Dude
I'd suggest declaring this deprecated (and apparently unimplemented!) method as
NS_SWIFT_UNAVAILABLE
. The presence of this method declaration is interfering with Swift bridging.