Swiftpack.co - fwcd/swift-qrcode-generator as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by fwcd.
fwcd/swift-qrcode-generator v2.0.2
QR code generator written in pure Swift
⭐️ 40
🕓 1 week ago
.package(url: "https://github.com/fwcd/swift-qrcode-generator.git", from: "v2.0.2")

Swift QR Code Generator

Linux Darwin

A QR code generator written in pure Swift with no dependencies.

The project is mostly a direct translation of Nayuki's QR code generator for Rust, with small changes applied to make the code more idiomatic in Swift.


Swift Package Manager

To use in your project, add the following dependency to your Package.swift:

.package(url: "https://github.com/fwcd/swift-qrcode-generator.git", from: "1.0.0")


Swift QR Code Generator is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'SwiftQRCodeGenerator'


import QRCodeGenerator

let qr = try! QRCode.encode(text: text, ecl: .medium)
let svg = qr.toSVGString(border: 4)


Stars: 40
Last commit: 1 week ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

Release Notes

1 week ago

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