Swiftpack.co -  AppliedRecognition/AAMVA-Barcode-Parser-Apple as Swift Package
Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
Parse barcodes on North American ID cards encoded using AAMVA standard
.package(url: "https://github.com/AppliedRecognition/AAMVA-Barcode-Parser-Apple.git", from: "v1.4.1")

AAMVA Barcode Parser

Parse barcodes on North American ID cards encoded using AAMVA standard.


  1. Install CocoaPods.

  2. Add a file called Podfile in your project's root folder.

  3. Refer to the Podfile reference documentation to set up your Podfile.

  4. Add the AAMVA Barcode Parser dependency in your Podfile:

    pod 'AAMVA-Barcode-Parser', '~> 1'
  5. Open Terminal, navigate to the folder with your Podfile and enter:

    pod install


import AAMVABarcodeParser

/// Parse barcode data
/// - Parameter barcodeData: Barcode data scanned from the back of a North American ID card
/// - Returns: Parsed document data
func parseBarcodeData(_ barcodeData) -> DocumentData {
    let parser = AAMVABarcodeParser()
    let documentData = try parser.parseData(barcodeData)
    if let firstName = documentData.firstName, let lastName = documentData.lastName {
        NSLog("Parsed ID card belonging to %@ %@", firstName, lastName)
    return documentData

Reference documentation


Stars: 0
Last commit: 2 days ago

Ad: Job Offers

iOS Software Engineer @ Perry Street Software
Perry Street Software is Jack’d and SCRUFF. We are two of the world’s largest gay, bi, trans and queer social dating apps on iOS and Android. Our brands reach more than 20 million members worldwide so members can connect, meet and express themselves on a platform that prioritizes privacy and security. We invest heavily into SwiftUI and using Swift Packages to modularize the codebase.

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API