Skip to content

Latest commit

 

History

History
18 lines (13 loc) · 424 Bytes

README.md

File metadata and controls

18 lines (13 loc) · 424 Bytes

QR-Barcode-Generator

QR-Barcode-Generator

This enum returns either a barcode or a qrcode from a string you pass to it

Use it as follows:

        let code = CodeType.barcode
        imgView.image = code.image(string: "hello how are you??", imgViewFrame: imgView.frame)

OR

        let code = CodeType.qrcode
        imgView.image = code.image(string: "hello how are you??", imgViewFrame: imgView.frame)