Swiftpack.co - thisischristoph/QRCodeKit as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by thisischristoph.
thisischristoph/QRCodeKit 1.1.2
Swift Package to generate QRCodes from Strings
⭐️ 1
🕓 3 years ago
iOS watchOS tvOS
.package(url: "https://github.com/thisischristoph/QRCodeKit.git", from: "1.1.2")

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
Last commit: 3 years ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

Related Packages

Release Notes

V1.1.2
3 years ago

Fixes CIColor Crash

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics