Skip to content
Cross-platform/appleOS SIMPLE QRCode generator for swift, without using CIFilter
Swift Ruby Objective-C Shell
Branch: master
Clone or download
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.
.swiftpm/xcode/package.xcworkspace Remove warning Sep 17, 2019
Example Update documentation for 1.1.0 Feb 20, 2019
Sources 1.1.2 Sep 17, 2019
Tests Update documentation for 1.1.0 Feb 20, 2019
swift_qrcodejs.xcodeproj Swift 5 Update Mar 30, 2019
.gitignore Update from EFQRCode Oct 20, 2018
.swift-version Update from EFQRCode Oct 20, 2018
.travis.yml
LICENSE Initial commit Oct 1, 2017
Package.swift Refactor tests Oct 20, 2018
README.md 1.1.2 Sep 17, 2019
jazzy.sh 1.1.2 Sep 17, 2019
swift_qrcodejs.podspec 1.1.2 Sep 17, 2019

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.2"),
]
CocoaPods
pod 'swift_qrcodejs'
Carthage
github "ApolloZhu/swift_qrcodejs" ~> 1.1.2
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.