Manos Chorianopoulos

barcode v21

...@@ -230,13 +230,13 @@ extension CouponBarcodeView { ...@@ -230,13 +230,13 @@ extension CouponBarcodeView {
230 // gen.fillColor = UIColor.white 230 // gen.fillColor = UIColor.white
231 // gen.strokeColor = UIColor.black 231 // gen.strokeColor = UIColor.black
232 232
233 - if let barcodeImage = RSUnifiedCodeGenerator.shared.generateCode(barcodeString, machineReadableCodeObjectType: AVMetadataObject.ObjectType.ean13.rawValue, targetSize: CGSize(width: self.uiscreen.width * 0.8, height: self.uiscreen.height * 0.05)) { 233 + if let barcodeImage = RSUnifiedCodeGenerator.shared.generateCode(barcodeString, machineReadableCodeObjectType: AVMetadataObject.ObjectType.ean13.rawValue, targetSize: CGSize(width: self.uiscreen.width * 0.8, height: self.uiscreen.height * 0.1)) {
234 234
235 VStack(alignment: .center) { 235 VStack(alignment: .center) {
236 Image(uiImage: barcodeImage) 236 Image(uiImage: barcodeImage)
237 .resizable() 237 .resizable()
238 .aspectRatio(contentMode: .fit) 238 .aspectRatio(contentMode: .fit)
239 - .frame(width: self.uiscreen.width * 0.8, height: self.uiscreen.height * 0.05) 239 + .frame(width: self.uiscreen.width * 0.8, height: self.uiscreen.height * 0.1)
240 240
241 } 241 }
242 .frame(maxWidth: .infinity) 242 .frame(maxWidth: .infinity)
......