Swiftpack.co -  fwcd/swift-qrcode-generator as Swift Package
Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
fwcd/swift-qrcode-generator
QR code generator written in pure Swift
.package(url: "https://github.com/fwcd/swift-qrcode-generator.git", from: "v1.0.0")

Swift QR Code Generator

Linux

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.

Usage

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")

Example

import QRCodeGenerator

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

GitHub

link
Stars: 6
Last commit: 6 weeks ago

Ad: Job Offers

iOS Software Engineer @ Perry Street Software
Perry Street Software is Jack’d and SCRUFF. We are two of the world’s largest gay, bi, trans and queer social dating apps on iOS and Android. Our brands reach more than 20 million members worldwide so members can connect, meet and express themselves on a platform that prioritizes privacy and security. We invest heavily into SwiftUI and using Swift Packages to modularize the codebase.

Release Notes

Version 0.0.2
1 year ago

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