Showing
2 changed files
with
15 additions
and
15 deletions
No preview for this file type
... | @@ -230,17 +230,17 @@ extension CouponBarcodeView { | ... | @@ -230,17 +230,17 @@ 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: 300, height: 300)) { | 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)) { |
234 | 234 | ||
235 | -// VStack(alignment: .center) { | 235 | + VStack(alignment: .center) { |
236 | -// Image(uiImage: image) | 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.05) |
240 | -// | 240 | + |
241 | -// } | 241 | + } |
242 | -// .frame(maxWidth: .infinity) | 242 | + .frame(maxWidth: .infinity) |
243 | -// .padding(.top, self.uiscreen.height * 0.01) | 243 | + .padding(.top, self.uiscreen.height * 0.01) |
244 | 244 | ||
245 | // Image(uiImage: UIImage(named: "ic_back")!) | 245 | // Image(uiImage: UIImage(named: "ic_back")!) |
246 | // .renderingMode(.original) | 246 | // .renderingMode(.original) |
... | @@ -249,11 +249,11 @@ extension CouponBarcodeView { | ... | @@ -249,11 +249,11 @@ extension CouponBarcodeView { |
249 | // .frame(width: 300, height: 300) | 249 | // .frame(width: 300, height: 300) |
250 | 250 | ||
251 | 251 | ||
252 | - Image(uiImage: barcodeImage) | 252 | +// Image(uiImage: barcodeImage) |
253 | - .renderingMode(.original) | 253 | +// .renderingMode(.original) |
254 | - .resizable() | 254 | +// .resizable() |
255 | - .aspectRatio(contentMode: .fit) | 255 | +// .aspectRatio(contentMode: .fit) |
256 | - .frame(width: 300, height: 300) | 256 | +// .frame(width: 300, height: 300) |
257 | // .frame(width: self.uiscreen.width * 0.8, height: self.uiscreen.height * 0.05) | 257 | // .frame(width: self.uiscreen.width * 0.8, height: self.uiscreen.height * 0.05) |
258 | } | 258 | } |
259 | // } | 259 | // } | ... | ... |
-
Please register or login to post a comment