-
Notifications
You must be signed in to change notification settings - Fork 52
Open
Description
Code below!!
`
@State private var pay2dCodeImage:Image = nil
@State var code39:String="Hello Code39 why fake code"
@State var pay2dCodeImage:Image = Image("membercard_icon_light") //付款條碼圖片
@State var qrcodeType = CBBarcodeView.BarcodeType.qrCode
@State var rotate = CBBarcodeView.Orientation.up
CBBarcodeView(data: $code39,
barcodeType: $qrcodeType,
orientation: $rotate)
{ image in
print("make image")
genBarCoded = true
self.pay2dCodeImage = Image(uiImage: image!)
}
pay2dCodeImage
.resizable()
.frame(width:screen.width * 0.76,height: screen.height * 0.3)
`
pay2dCodeImage is not shown.
Metadata
Metadata
Assignees
Labels
No labels