DLParser Swift

A parser for driver license barcodes.

17
12
Swift

DLParser

DLParser is a library for parsing barcode data from AAMVA compliant driver licenses.

Swift Version
License
Platform

DLParser aims to decode barcode data from AAMVA compliant driver licenses. The parser
supports all AAMVA versions and AAMVA defined fields.

Features

  • [x] Support for all AAMVA standards (v1-10)
  • [x] Support for all AAMVA fields
  • [x] License model for all AAMVA fields
  • [x] Offline use
  • [x] Unit tests for version parsers

Requirements

  • iOS 12.0+
  • Swift 5.1
  • Xcode 13.2.1
  • Cocoapods

Cocoapod Installation

pod 'DLParser', '~> 3.1.0'

Carthage Installation

github "ajohnson388/DLParser-Swift"

SPM Installation

dependencies: [
    .package(url: "https://github.com/ajohnson388/DLParser-Swift.git", from: "3.1.0")
]

Sample Installation

Clone the repo.

Navigate to your project directory and run pod install.

Open the .xcworkspace file.

Create an App id using your developer account.

Run the unit tests for the version parsers and assert they pass.

Run the example app on a physical device.

Scan driver license barcodes by using the example app and view output through the console.

Contribute

Open an issue or make a pull request.

Note

This library was derived from https://github.com/ksoftllc/license-parser.

Meta

Andrew Johnson – [email protected]

Distributed under the MIT license. See LICENSE for more information.

https://github.com/ajohnson388/