8000 GitHub - fwcd/swift-qrcode-generator: QR code generator written in pure Swift
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

fwcd/swift-qrcode-generator

Repository files navigation

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.

Usage

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

CocoaPods

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

pod 'SwiftQRCodeGenerator'

Example

import QRCodeGenerator

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

About

QR code generator written in pure Swift

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 5

0