EAN13BarcodeGenerator icon indicating copy to clipboard operation
EAN13BarcodeGenerator copied to clipboard

BarCode show not properly

Open olegek opened this issue 5 years ago • 1 comments

Add BarCodeView and generate code, after push screen it showing not all, and some yellow line

olegek avatar Mar 01 '19 08:03 olegek

@olegek the yellow line could be removed by setting bgColor which has 3 components (RGB). For example, barcodeView.bgColor = .init(red: 254, green: 254, blue: 254)

let barcodeView = BarCodeView(frame: .init(x: 0, y: 0, width: size.width, height: size.height))
barcodeView.barCode = self
barcodeView.bgColor = .init(red: 254, green: 254, blue: 254)
barcodeView.drawableColor = .black
barcodeView.shouldShowNumbers = true

AlexTsyganov avatar Sep 03 '19 11:09 AlexTsyganov