Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

QRCODE some how not generated. #69

Open
terrylao opened this issue Jul 21, 2023 · 0 comments
Open

QRCODE some how not generated. #69

terrylao opened this issue Jul 21, 2023 · 0 comments

Comments

@terrylao
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant