Skip to content

QRCODE some how not generated. #69

@terrylao

Description

@terrylao

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions