https://github.com/meniny/quickresponsecode
📲 A tiny Quick Response Code (QRCode) library for iOS written in Swift
https://github.com/meniny/quickresponsecode
qrcode qrcode-encoder qrcode-generator qrcode-scanner
Last synced: 26 days ago
JSON representation
📲 A tiny Quick Response Code (QRCode) library for iOS written in Swift
- Host: GitHub
- URL: https://github.com/meniny/quickresponsecode
- Owner: Meniny
- License: mit
- Created: 2017-08-02T10:28:30.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-01-12T02:53:29.000Z (over 7 years ago)
- Last Synced: 2025-04-07T15:53:16.332Z (28 days ago)
- Topics: qrcode, qrcode-encoder, qrcode-generator, qrcode-scanner
- Language: Swift
- Homepage:
- Size: 1.01 MB
- Stars: 13
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## What's this?
`QuickResponseCode` is a tiny Quick Response Code (QRCode) library for iOS written in Swift.
## Requirements
* iOS 8.0+
* tvOS 9.0+
* Xcode 9 with Swift 4## Installation
#### CocoaPods
```ruby
use_frameworks!
pod 'QuickResponseCode'
```## Contribution
You are welcome to fork and submit pull requests.
## License
`QuickResponseCode` is open-sourced software, licensed under the `MIT` license.
## Usage
```swift
import QuickResponseCodefunc generate() {
let qr = QRCode(string: textView.text,
size: imageView.bounds.size,
foreground: UIColor.random,
background: UIColor.random,
correction: .low)
let iconedimage = qr.iconedImage(#imageLiteral(resourceName: "icon"))
let image = qr.image
}func generate2() {
let image = UIImage.QRCodeImage(from: textView.text,
size: imageView.bounds.size,
foreground: UIColor.random,
background: UIColor.random,
correction: .low)
}func generate3() {
let image = "SourceString".QRCodeImage(size: imageView.bounds.size,
foreground: UIColor.random,
background: UIColor.random,
correction: .low)
}
```