Manos Chorianopoulos

barcode lib v18

......@@ -209,7 +209,7 @@ extension CouponBarcodeView {
}
.frame(maxWidth: .infinity)
if (CharacterSet.decimalDigits.isSuperset(of: CharacterSet(charactersIn: "1234567891234"))) {
if (CharacterSet.decimalDigits.isSuperset(of: CharacterSet(charactersIn: coupon["coupon"] as? String ?? ""))) {
VStack(alignment: .center) {
VStack {}
.frame(height: 1)
......@@ -373,6 +373,18 @@ extension CouponBarcodeView {
}
.frame(width:self.uiscreen.width)
.frame(maxHeight: .infinity)
.onAppear {
// If you want to setup data with model
// couponset = CouponSetItemModel(dictionary: coupon)
print("==================")
print(coupon["coupon"] as? String ?? "")
print("==================")
print("========constructBarcode()==========")
print(constructBarcode() ?? "")
print("========constructBarcode()==========")
}
}
}
......@@ -431,7 +443,6 @@ struct CouponBarcodeView: View {
// .onAppear {
// // If you want to setup data with model
// couponset = CouponSetItemModel(dictionary: coupon)
//
// }
}
}
......