DCQRCode
DCQRCode copied to clipboard
A tiny QRCode Generate Library
DCQRCode
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.
How To Get Started
- Download DCQRCode
- Clone DCQRCode
git clone [email protected]:Tangdixi/DCPathButton.git
Installation
Drag the Source into your project.
Well, it is strongly recommended that you install via CocoaPods
CocoaPods
pod 'DCQRCode', '~> 2.0.1'
Usage
- 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
Documentation
Support quicklook in Xcode
Bug, Suggestions
All you need is open an issue, I'll answer it ASAP !
TODO
- Allow reverse position color
- Generate pattern images as the QRCode mask
- Change QRCode style, like round rect
Contribution
Thanks @knightbat's PR (Migration to Swift 3) !!!!
License
DCQRCode is available under the MIT license. See the LICENSE file for more info.