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

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

Example

import QRCodeGenerator

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

Github

link
Stars: 1

Dependencies

Used By

Total: 0

Releases

Version 0.0.2 - 2020-02-25 18:02:25

Initial release - 2020-02-25 17:33:17