Swiftpack.co - Package - thisischristoph/QRCodeKit

QRCodeKit

A super lightweight Swift QRCode generator.

Swift Package Manager

https://github.com/thisischristoph/QRCodeKit.git

QRCodeKit 101

Simply import QRCodeKit and use as follows:

let image = QRCodeKit.generate(from: "https://www.example.com")

Customise the size of the image creates

let image = QRCodeKit.generate(from: "https://www.example.com", size: .small) // 100 x 100
let image = QRCodeKit.generate(from: "https://www.example.com", size: .medium) // 500 x 500
let image = QRCodeKit.generate(from: "https://www.example.com", size: .large) // 1500 x 500
let image = QRCodeKit.generate(from: "https://www.example.com", size: .custom(800))

Customise the colors

// Red background, Blue foreground
let image = QRCodeKit.generate(from: "https://www.example.com", size: .medium, style: .custom(.clear, .blue))

//Transparent Background
let image = QRCodeKit.generate(from: "https://www.example.com", size: .medium, style: .custom(.clear, .blue))

//Transparent Foreground
let image = QRCodeKit.generate(from: "https://www.example.com", size: .medium, style: .custom(.blue, .clear))

Github

link
Stars: 1

Dependencies

Used By

Total: 0

Releases

V1.1.2 - 2020-08-20 12:15:48

Fixes CIColor Crash

V1.1.1 - 2020-08-20 12:12:13

V1.1 - 2020-08-20 12:02:11

V1 - 2020-08-19 22:38:44