All Projects → cam-inc → quur-swift

cam-inc / quur-swift

Licence: other
Minimal QR code Read/Write framework for Swift

Programming Languages

swift
15916 projects
objective c
16641 projects - #2 most used programming language

Labels

Projects that are alternatives of or similar to quur-swift

flutter-scankit
Flutter QR code scanning
Stars: ✭ 107 (+386.36%)
Mutual labels:  qrcode
javascript-barcode
Dynamsoft Barcode Reader JavaScript SDK for package managers. PDF417, QR Code, DataMatrix, MaxiCode and more are supported.
Stars: ✭ 142 (+545.45%)
Mutual labels:  qrcode
makeqr
WiFi QR Code Generator
Stars: ✭ 21 (-4.55%)
Mutual labels:  qrcode
barcode-detector
Spec compliant polyfill of the Barcode Detection API 🤳
Stars: ✭ 31 (+40.91%)
Mutual labels:  qrcode
next-qrcode
React hooks for generating QRCode for your next React apps.
Stars: ✭ 87 (+295.45%)
Mutual labels:  qrcode
QR-secret-sharing
🔒 Create QR codes to secret-share a message. Ideal for cryptocurrency wallet recovery keys and passwords.
Stars: ✭ 94 (+327.27%)
Mutual labels:  qrcode
react-native-qrimage-decoder
QR image decoder for React Native
Stars: ✭ 13 (-40.91%)
Mutual labels:  qrcode
BGAQRCode-Android
QRCode 扫描二维码、扫描条形码、相册获取图片后识别、生成带 Logo 二维码、支持微博微信 QQ 二维码扫描样式
Stars: ✭ 7,714 (+34963.64%)
Mutual labels:  qrcode
react-native-thermal-receipt-printer-image-qr
React native thermal receipt printer
Stars: ✭ 71 (+222.73%)
Mutual labels:  qrcode
android-zbar-sdk
🔗 android-zbar-sdk, provide jni source, so file and jar file used alone, gradle/maven remote dependencies.
Stars: ✭ 311 (+1313.64%)
Mutual labels:  qrcode
api2pdf.php
PHP client library for the Api2Pdf.com REST API - Convert HTML to PDF, URL to PDF, Office Docs to PDF, Merge PDFs, HTML to Image, URL to Image, HTML to Docx, HTML to Xlsx, PDF to HTML, Thumbnail preview of office files
Stars: ✭ 42 (+90.91%)
Mutual labels:  qrcode
emv-qrcode
Golang Based EMV QR Code Generator and Parser (MPM, CPM)
Stars: ✭ 43 (+95.45%)
Mutual labels:  qrcode
QRCode-Generator-PHP-Class
🚀 QRCode PHP class (library). QR Code Generator using vCard 4.0 and the Google Chart API
Stars: ✭ 91 (+313.64%)
Mutual labels:  qrcode
STQRCodeController
一个简易的二维码识别控制器
Stars: ✭ 55 (+150%)
Mutual labels:  qrcode
luaqrcode
Pure Lua qrcode library
Stars: ✭ 114 (+418.18%)
Mutual labels:  qrcode
qrxfer
Transfer files from Air gapped machines using QR codes
Stars: ✭ 88 (+300%)
Mutual labels:  qrcode
qt-qrcode
Qt/C++ library for encoding and visualization of data in a QR Code symbol
Stars: ✭ 35 (+59.09%)
Mutual labels:  qrcode
QRCodeCameraX
QRcode decoder based on CameraX & zxing-core & ML kit, in less than 50 lines
Stars: ✭ 111 (+404.55%)
Mutual labels:  qrcode
google-authenticator
Google Authenticator
Stars: ✭ 20 (-9.09%)
Mutual labels:  qrcode
QR
QR Code Generator for macOS with automatic export of text from the clipboard
Stars: ✭ 11 (-50%)
Mutual labels:  qrcode

QuuR-swift

Platform Carthage compatible

QuuR-swift makes it easy to deal with QR Code data in Swift.

Requirements

  • iOS 8.0+
  • Xcode 8

Carthage

You can use Carthage to install QuuR-swift by adding it to your Cartfile:

github "cam-inc/QuuR-swift"

Usage

In iOS10+, you will need first to reasoning about the camera use. For that you'll need to add the Privacy - Camera Usage Description (NSCameraUsageDescription) field in your Info.plist:

capture of Info.plist

Generate a QR Code from a given string.

Standard QRCode

let code = QuuR.Code(from: "https://github.com/", quality: .high)
let imageView = UIImageView(image: code.image)

Colored QRCode

var code = QuuR.Code(from: "https://github.com/", quality: .high)
code.backgroundColor = CIColor(red: 0.0, green: 1.0, blue: 0.5)
code.color = CIColor(red: 0, green: 0, blue: 0)
let imageView = UIImageView(image: code.image)

Design QRCode

When you set true to isAutoAdjustingColor, QuuR.Code will detect the primary color of the centerImage and use it to the foreground color of the QRCode.

var code = QuuR.Code(from: "https://github.com/", quality: .high)
code.errorCorrectionLevel = .high
code.centerImage = UIImage(named: "SomeImage")
code.isAutoAdjustingColor = true
let imageView = UIImageView(image: code.image)

Read from UIImage

StaticReader.read will return an optional array of strings [String]?

let texts = QuuR.StaticReader.read(image: SomeQRCodeImage)

Read QRCode from Camera input

class ViewController: UIViewController {
    @IBOutlet weak var reader: Reader!

    override func viewDidLoad() {
        super.viewDidLoad()
        reader.startDetection()
    }
}

extension ViewController: ReaderDidDetectQRCode {

    public func reader(_ reader: Reader, didDetect text: String) {
        print(text)
        reader.stopDetection()
    }
}

Use QuuR.Reader with Storyboard

  1. Drag and drop a UIView into the desired place.
  2. Show Identity Inspector.
  3. Set Class to Reader and Module to QuuR

IBInspectable properties

  1. isZoomable Enable to zoom a video input by pinching a screen.
  2. maxZoomScale Set it to a positive CGFloat value.

Delegate

Delegate property also settable from Storyboard by right-clicking a Reader view.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].