Showing
2 changed files
with
2 additions
and
2 deletions
No preview for this file type
... | @@ -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) | ... | ... |
-
Please register or login to post a comment