All Projects → vinodiOS → SwiftQRCodeScanner

vinodiOS / SwiftQRCodeScanner

Licence: MIT license
An easy QR code reader for iOS written in Swift

Programming Languages

swift
15916 projects
ruby
36898 projects - #4 most used programming language

Projects that are alternatives of or similar to SwiftQRCodeScanner

barcode-server
Barcode Server for Barcode Client-Server android application
Stars: ✭ 40 (-18.37%)
Mutual labels:  qrcode-scanner, qrcode-reader
ai barcode
Barcode generation,Barcode scanning,qrcode,qrcode generation,qrcode creator,flutter barcode,flutter qrcode,support android iOS web platform
Stars: ✭ 99 (+102.04%)
Mutual labels:  qrcode-scanner, qrcode-reader
quagga2-reader-qr
Quagga2 sample external reader for QR codes
Stars: ✭ 20 (-59.18%)
Mutual labels:  qrcode-scanner, qrcode-reader
barcode scan2
[reborned barcode_scan] A flutter plugin for reading 2D barcodes and QR codes.
Stars: ✭ 43 (-12.24%)
Mutual labels:  qrcode-scanner, qrcode-reader
Secure-QR-Reader
Privacy Focused and Secure QR Reader
Stars: ✭ 32 (-34.69%)
Mutual labels:  qrcode-scanner, qrcode-reader
Efqrcode
A better way to operate QR Code in Swift, support iOS, macOS, watchOS and tvOS.
Stars: ✭ 4,121 (+8310.2%)
Mutual labels:  qrcode-scanner, qrcode-reader
laravel-qr-code-login
Today I will be showing you how to implement Laravel login with QRcode in a website. You can use my Laravel Starter so you can start the project in one minute .
Stars: ✭ 72 (+46.94%)
Mutual labels:  qrcode-scanner, qrcode-reader
barcode-detector
Spec compliant polyfill of the Barcode Detection API 🤳
Stars: ✭ 31 (-36.73%)
Mutual labels:  qrcode-scanner, qrcode-reader
BarcodeReader
Simple multi-format barcode reader for Windows
Stars: ✭ 26 (-46.94%)
Mutual labels:  qrcode-scanner, qrcode-reader
RichEditorView
Rich Text Editor in Swift. Newly Featured Code and Swift 5 compatible of cjwirth/RichEditorView.
Stars: ✭ 105 (+114.29%)
Mutual labels:  swift5
SwiftRadix
Easily convert integers to binary/hex/octal strings and back again with clean functional syntax.
Stars: ✭ 34 (-30.61%)
Mutual labels:  swift5
StoreHelper
Implementing and testing In-App Purchases with StoreKit2 and StoreHelper in Xcode 13, Swift 5.5, SwiftUI, iOS 15 and macOS 12.
Stars: ✭ 158 (+222.45%)
Mutual labels:  swift5
FireSnapshot
A useful Firebase-Cloud-Firestore Wrapper with Codable.
Stars: ✭ 56 (+14.29%)
Mutual labels:  swift5
core-data-model-description
Declarative way to describe a Core Data model in code.
Stars: ✭ 60 (+22.45%)
Mutual labels:  swift5
XYColor
An easy way to adapter dark mode on CALayer. iOS 快速适配夜间模式
Stars: ✭ 76 (+55.1%)
Mutual labels:  swift5
EnumKit
EnumKit is a library that gives you the ability to simply access an enum associated value, without having to use pattern matching. It also offers many utilities available to other swift types, like updatability of an associated value and transformations.
Stars: ✭ 91 (+85.71%)
Mutual labels:  swift5
awesome-ios
A collaborative list of awesome for iOS developers. Include quick preview.
Stars: ✭ 1,329 (+2612.24%)
Mutual labels:  swift5
flutter scan
scanner qrcode in widget tree & decoder qrcode from image
Stars: ✭ 63 (+28.57%)
Mutual labels:  qrcode-scanner
VideoTimelineView
Video timeline UI for iOS Apps
Stars: ✭ 103 (+110.2%)
Mutual labels:  swift5
qrcodescan.in
📠 A simple, fast, and useful progressive web application.
Stars: ✭ 144 (+193.88%)
Mutual labels:  qrcode-scanner

SwiftQRCodeScanner

QR Scanner

Features

  • Easy to use
  • Customize everything
  • Scan QR Code from saved photos

Screenshots

Without camera and flash

With camera and flash

Example

To run the example project, clone the repo, go to Example folder and open SwiftQRScanner.xcworkspace.

Requirements

  • iOS 10.0
  • Xcode 11.0+
  • Swift 5

Installation

Using CocoaPods

SwiftQRScanner is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'SwiftQRScanner', :git => ‘https://github.com/vinodiOS/SwiftQRScanner’

Manual Installation

Download the latest version ,then unzip & drag-drop the Classes folder inside your iOS project. You can do that directly within Xcode, just be sure you have the copy items if needed and the create groups options checked.

How to use

Import SwiftQRScanner module and confirm to the QRScannerCodeDelegate protocol.

import SwiftQRScanner

class ViewController: UIViewController {
}

extension ViewController: QRScannerCodeDelegate {
}

Create instance of SwiftQRScanner to scan QR code.

let scanner = QRCodeScannerController()
scanner.delegate = self
self.present(scanner, animated: true, completion: nil)

To use more features like camera switch, flash and many other options use QRScannerConfiguration:

var configuration = QRScannerConfiguration()
configuration.cameraImage = UIImage(named: "camera")
configuration.flashOnImage = UIImage(named: "flash-on")
configuration.galleryImage = UIImage(named: "photos")

let scanner = QRCodeScannerController(qrScannerConfiguration: configuration)
scanner.delegate = self
self.present(scanner, animated: true, completion: nil)

You can use following QRScannerConfiguration properties:

Property Name Default Value Description
title "Scan QR Code" Title of SwiftQRCodeScanner
hint "Align QR code within frame to scan" Hint for QR Code scan suggestion
uploadFromPhotosTitle "Upload from photos" Button title for pick QR Code from saved photos
invalidQRCodeAlertTitle "Invalid QR Code" Title for Alert if invalid QR Code
invalidQRCodeAlertActionTitle "OK" Title for Action if invalid QR Code
cameraImage nil Image for camera switch button
flashOnImage nil Image for flash button
length 20.0 Length of QR Code scanning frame
color green Color of QR Code scanning frame
radius 10.0 Corner Radius of QR Code scanning frame
thickness 5.0 Corner Thickness of QR Code scanning frame
readQRFromPhotos true Hide/show "Upload From photos" button
cancelButtonTitle "Cancel" Title for cancel button
cancelButtonTintColor nil Color for cancel button

And finally implement delegate methods to get result:

func qrScanner(_ controller: UIViewController, scanDidComplete result: String) {
    print("result:\(result)")
}

func qrScannerDidFail(_ controller: UIViewController, error: QRCodeError) {
    print("error:\(error.localizedDescription)")
}

func qrScannerDidCancel(_ controller: UIViewController) {
    print("SwiftQRScanner did cancel")
}

Author

Vinod, [email protected]

License

SwiftQRScanner is available under the MIT license. See the LICENSE file for more info.

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].