Skip to content
Cross-appleOS SIMPLE QRCode generator for swift, without using CIFilter
Branch: master
Clone or download
Pull request Compare This branch is even with ApolloZhu:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Example
Sources
Tests
swift_qrcodejs.xcodeproj
.gitignore
.swift-version
.travis.yml
LICENSE
Package.swift
README.md
jazzy.sh
swift_qrcodejs.podspec

README.md

swift_qrcodejs

CocoaPods Version CocoaPods Compatible Platforms Swift Package Manager Compatible Carthage Compatible

Swift 4.2 MIT License Build Status Code Coverage Documentation

Cross-platform QRCode generator written in pure Swift, aiming to solve the awkward situation that there's no CIFilter for QRCode generation on Apple Watches.

Installation

Swift Package Manager
dependencies: [
    .package(url: "https://github.com/ApolloZhu/swift_qrcodejs.git", from: "1.1.1"),
]
CocoaPods
pod 'swift_qrcodejs'
Carthage
github "ApolloZhu/swift_qrcodejs" ~> 1.1.1
Manually

Copy all the .swift files from the Sources folder into your project.

Usage

import swift_qrcodejs

guard let qrCode = QRCode("Hello World!") else {
    fatalError("Failed to generate QRCode")
}
print(qrCode.toString(filledWith: "##", patchedWith: "  "))

For more, checkout the documentation.

Example Projects

License

MIT License. Modified based on qrcodejs. See LICENSE and each individual file header for more information.

You can’t perform that action at this time.