DCQRCode is a QRCode generate library implement by CoreImage and CoreGraphics. DCQRCode allow you to change the QRCode's color or Position Style, etc. The inspirarion come from the QRCode feature in WeChat.
- Download DCQRCode
- Clone DCQRCode
git clone [email protected]:Tangdixi/DCPathButton.git
Drag the Source into your project.
Well, it is strongly recommended that you install via CocoaPods
pod 'DCQRCode', '~> 2.0.1'
- Create a DCQRCode
let qrcode = DCQRCode(info: "https://github.com/Tangdixi/DCQRCode", size: CGSize(width: 300, height: 300))
- Configure the qrcode
qrcode.backgroundColor = UIColor.yellowColor()
qrcode.color = UIColor.brownColor()
- Output the qrcode image
let qrcodeImage = qrcode.image()
More detail just head to the Example Project
Support quicklook in Xcode
All you need is open an issue, I'll answer it ASAP !
- Allow reverse position color
- Generate pattern images as the QRCode mask
- Change QRCode style, like round rect
Thanks @knightbat's PR (Migration to Swift 3) !!!!
DCQRCode is available under the MIT license. See the LICENSE file for more info.