Latest 1.0.0
Homepage https://github.com/monoqlo/CarQRCodeScanner
License MIT
Platforms ios 10.0
Dependencies ZXingObjC
Frameworks UIKit, AudioToolbox, ZXingObjC, QuartzCore
Authors

CarQRCodeScanner is Japanese car inspection certificate QR code scanner.

Version
License
Platform

screenshot1
screenshot2
screenshot3

Requirements

  • iOS 10.0+
  • Swift 4.0+
  • Xcode 9.2+

Installation

Carthage

You can install Carthage with Homebrew using the following command:

$ brew update
$ brew install carthage

To integrate ExpandingMenu into your Xcode project using Carthage, specify it in your Cartfile:

github "monoqlo/CarQRCodeScanner" ~> 1.0

Run carthage update to build the framework and drag the built CarQRCodeScanner.framework into your Xcode project.

Add runscript to your Xcode target.

Shell /bin/sh
/usr/local/bin/carthage copy-frameworks

Input Files
$(SRCROOT)/Carthage/Build/iOS/CarQRCodeScanner.framework

CocoaPods

You can install CocoaPods with the following command:

$ gem install cocoapods

To integrate ExpandingMenu into your Xcode project using CocoaPods, specify it in your Podfile:

source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '9.0'
use_frameworks!

target '<Your Target Name>' do
  pod 'CarQRCodeScanner', '~> 1.0'
end

Then, run the following command:

$ pod install

Usage

  1. Instantiate CarQRCodeScannerController.
  2. Set delegate to the instance.
  3. You can get scan result from the delegate method.

Sample

import CarQRCodeScanner

class ViewController: UIViewController {

    func showQRCodeScanner() {
        let scanner = CarQRCodeScannerController()
        scanner.scannerDelegate = self
        self.presentViewController(scanner, animated: true, completion: nil)
    }
}

extension ViewController: CarQRCodeScannerControllerDelegate {

    func qrScannerControllerDidCancel(scanner: CarQRCodeScannerController) {
        print("canceld!")
    }

    func qrScannerController(scanner: CarQRCodeScannerController, didFinishScanning certificate: CarInspectionCertificate) {
        print(certificate)
    }

}

Result example

example

Latest podspec

{
    "name": "CarQRCodeScanner",
    "version": "1.0.0",
    "summary": "Japanese car inspection certificate QR code scanner",
    "description": "Japanese car inspection certificate QR code scanner.",
    "homepage": "https://github.com/monoqlo/CarQRCodeScanner",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "monoqlo": "[email protected]"
    },
    "source": {
        "git": "https://github.com/monoqlo/CarQRCodeScanner.git",
        "tag": "1.0.0"
    },
    "social_media_url": "https://twitter.com/monoqlo",
    "platforms": {
        "ios": "10.0"
    },
    "source_files": "CarQRCodeScanner/Source/**/*.swift",
    "resources": [
        "CarQRCodeScanner/**/*.xcassets",
        "CarQRCodeScanner/**/*.storyboard",
        "CarQRCodeScanner/**/*.xib"
    ],
    "frameworks": [
        "UIKit",
        "AudioToolbox",
        "ZXingObjC",
        "QuartzCore"
    ],
    "dependencies": {
        "ZXingObjC": [
            "3.2.2"
        ]
    },
    "pushed_with_swift_version": "4.0"
}

Pin It on Pinterest

Share This