Git Product home page Git Product logo

qrcodetool's Introduction

QRCodeTool

Swift 5.6

QRCode Scan, read, create tool.

二维码扫描、读取、生成工具

Use camera to scan qrcode, open light, create qrcode from string, add middle image, all in one line. 一行代码实现摄像头二维码扫描、二维码生成、二维码读取,开启闪光灯,为二维码添加中间小图片

From iOS 10, you should add Privacy - Camera Usage Description in info.plist.

从iOS10开始,开启摄像头需要在info.plist文件中添加名称为Privacy - Camera Usage Description 的key

create a qrcode image from string

let image = QRCodeTool.shared.createQRCode(input: "https://developer.apple.com/", middleImage: UIImage(named: "test"), scale: .init(x: 0.2, y: 0.2))

scan qrcode from camera

QRCodeTool.shared.scanQRCode(inView: view, isDrawFrame: true) { (result : [String]) in
    print(result)
}

qrcodetool's People

Contributors

sunzhic avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.