All Projects → aschuch → Qrcode

aschuch / Qrcode

Licence: mit
A QRCode generator written in Swift.

Programming Languages

swift
15916 projects

Projects that are alternatives of or similar to Qrcode

wifiqr
Create a QR code with your Wi-Fi login details
Stars: ✭ 207 (-70.22%)
Mutual labels:  qrcode, qrcode-generator
Php Qrcode
A QR Code generator for PHP7.4+
Stars: ✭ 685 (-1.44%)
Mutual labels:  qrcode-generator, qrcode
ips-qr-code
IPS QR Code Generator
Stars: ✭ 30 (-95.68%)
Mutual labels:  qrcode, qrcode-generator
Efqrcode
A better way to operate QR Code in Swift, support iOS, macOS, watchOS and tvOS.
Stars: ✭ 4,121 (+492.95%)
Mutual labels:  qrcode-generator, qrcode
qr
🔲 Generate QR Codes straight in your terminal!
Stars: ✭ 34 (-95.11%)
Mutual labels:  qrcode, qrcode-generator
js-qrcode
The library is for generating QR codes like SVG, HTML5 Canvas, PNG and JPG files, or text.
Stars: ✭ 35 (-94.96%)
Mutual labels:  qrcode, qrcode-generator
qrcode
A simple library for generating QR codes in C.
Stars: ✭ 23 (-96.69%)
Mutual labels:  qrcode, qrcode-generator
nova-qrcode-field
A Laravel Nova field to generate QR Code
Stars: ✭ 28 (-95.97%)
Mutual labels:  qrcode, qrcode-generator
QR Attendance
This project is an attendance system which provides attendance on scanning QR code. The attendance is stored in Excel sheet named with the date of attendance taken. In this folder a file named Generate.py is used to generate the QR code for given input file. Attend.py file is for scanning the QR code
Stars: ✭ 17 (-97.55%)
Mutual labels:  qrcode, qrcode-generator
qr-code-unity-3d-read-generate
Generating a QR code / Scanning a QR code in Unity 3D. Pre-build DLL and sample code from old Unity
Stars: ✭ 70 (-89.93%)
Mutual labels:  qrcode, qrcode-generator
qrencode-el
QRCode encoder for Emacs in pure elisp
Stars: ✭ 18 (-97.41%)
Mutual labels:  qrcode, qrcode-generator
Swiftscan
A barcode and qr code scanner( 二维码/条形码扫描、生成,仿微信、支付宝)
Stars: ✭ 293 (-57.84%)
Mutual labels:  qrcode-generator, qrcode
SkiaSharp.QrCode
Qr Code Generator with Skia. (no System.Drawing)
Stars: ✭ 72 (-89.64%)
Mutual labels:  qrcode, qrcode-generator
otp-authenticator-webapp
A 'Google Authenticator' like Single Page Application
Stars: ✭ 69 (-90.07%)
Mutual labels:  qrcode, qrcode-generator
qikQR
minimal desktop app to create QR codes.
Stars: ✭ 20 (-97.12%)
Mutual labels:  qrcode, qrcode-generator
art-qr
JavaScript library to generate beautiful QR code in browser 艺术二维码
Stars: ✭ 19 (-97.27%)
Mutual labels:  qrcode, qrcode-generator
QRCode-Telegram-bot
This is a simple bot. You generate QRcode with this bot
Stars: ✭ 12 (-98.27%)
Mutual labels:  qrcode, qrcode-generator
EasyQRCodeJS-NodeJS
EasyQRCodeJS-NodeJS is a NodeJS server side javascript QRCode image(PNG/JPEG/SVG/Base64 data url) generator. Support setting Dot style, Logo, Background image, Colorful, Title and more. Support binary(hex) data mode.
Stars: ✭ 73 (-89.5%)
Mutual labels:  qrcode, qrcode-generator
pix-payload-generator.net
Gerar payload para qrcode estático PIX. (Sistema de pagamento instantâneo do Brasil) Sem a necessidade de conexão com um PSP.
Stars: ✭ 23 (-96.69%)
Mutual labels:  qrcode, qrcode-generator
qrencode.cr
Crystal bindings for libqrencode (qrencode), a library for QR code generation
Stars: ✭ 28 (-95.97%)
Mutual labels:  qrcode, qrcode-generator

QRCode 🔳

Build Status Carthage compatible Swift 3.0

A QRCode generator written in Swift.

QRCode Example

Overview

Create a new QRCode representing a URL, a string or arbitrary data. The following examples all result in the same QRCode image.

// URL
let url = URL(string: "http://schuch.me")!
let qrCode = QRCode(url)
qrCode?.image

// String
let qrCode = QRCode("http://schuch.me")
qrCode?.image

// NSData
let data = "http://schuch.me".data(using: .isoLatin1)!
let qrCode = QRCode(data)
qrCode.image

Customize the output image

Make sure to declare your QRCode instance as a variable in order make use of the following features.

Adjust Output Size

Change the output size of the QRCode output image via the size property.

qrCode.size = CGSize(width: 300, height: 300)
qrCode.image // UIImage (300x300)

Color

Modify the colors of the QRCode output image via color and backgroundColor properties.

qrCode.color = CIColor(rgba: "16a085")
qrCode.backgroundColor = CIColor(rgba: "000")
qrCode.image // UIImage (green QRCode color and black background)

Note: The above examples make use of the CIColor extension that ships with this project to create colors based on HEX strings.

UIImageView extension

For convenience, a UIImageView extension is provided to directly initialize an image view with an instance of QRCode.

let imageView = UIImageView(qrCode: qrCode)

Emoji alias

In case you love emoji as much as I do, make sure to create your QRCode instance using the 🔳 typealias.

let qrCode = 🔳("http://example.com")

Version Compatibility

Current Swift compatibility breakdown:

Swift Version Framework Version
3.0 2.x
2.3 1.x
2.2 0.x

Installation

Carthage

Add the following line to your Cartfile.

github "aschuch/QRCode"

Then run carthage update.

Cocoapods

Add the following line to your Podfile.

pod "QRCode"

Then run pod install with Cocoapods 0.36 or newer.

Manually

Just drag and drop the three .swift files in the QRCode folder into your project.

Tests

Open the Xcode project and press ⌘-U to run the tests.

Alternatively, all tests can be run from the terminal using xctool.

xctool -scheme QRCodeTests -sdk iphonesimulator test

Todo

  • Snapshot Tests
  • Support transparent backgrounds

Contributing

  • Create something awesome, make the code better, add some functionality, whatever (this is the hardest part).
  • Fork it
  • Create new branch to make your changes
  • Commit all your changes to your branch
  • Submit a pull request

Contact

Feel free to get in touch.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].