Latest 1.0.1
Homepage https://github.com/ApolloZhu/swift_qrcodejs
License MIT
Platforms ios 8.0, osx 10.9, watchos 2.0, tvos 9.0
Frameworks Foundation
Authors

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

“`swift
dependencies: [
.package(url: “https://github.com/ApolloZhu/swift_qrcodejs.git”, from: “1.0.1”),
]
“`

CocoaPods

“`ruby
pod ‘swift_qrcodejs’
“`

Carthage

“`ruby
github “ApolloZhu/swift_qrcodejs” ~> 1.0.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.

Latest podspec

{
    "name": "swift_qrcodejs",
    "version": "1.0.1",
    "summary": "Cross-appleOS SIMPLE QRCode generator for swift, modified based on qrcodejs.",
    "description": "No CIFilter on watchOS? Then we generate QRCode without it ourselves!nswift_qrcodejs is a cross-appleOS simple QRCode generator for swift, modified based on qrcodejs.",
    "homepage": "https://github.com/ApolloZhu/swift_qrcodejs",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "ApolloZhu": "[email protected]"
    },
    "social_media_url": "http://github.com/ApolloZhu",
    "platforms": {
        "ios": "8.0",
        "osx": "10.9",
        "watchos": "2.0",
        "tvos": "9.0"
    },
    "source": {
        "git": "https://github.com/ApolloZhu/swift_qrcodejs.git",
        "tag": "1.0.1"
    },
    "source_files": "Sources/**/*.{h,swift}",
    "swift_version": "4.2",
    "frameworks": "Foundation"
}

Pin It on Pinterest

Share This