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.
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
LICENSE Initial commit Oct 1, 2017
Package.swift Refactor tests Oct 20, 2018 1.1.2 Sep 17, 2019 1.1.2 Sep 17, 2019
swift_qrcodejs.podspec 1.1.2 Sep 17, 2019


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.


Swift Package Manager
dependencies: [
    .package(url: "", from: "1.1.2"),
pod 'swift_qrcodejs'
github "ApolloZhu/swift_qrcodejs" ~> 1.1.2

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


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


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.