Swiftpack.co - appintheair/MRZScanner as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
Library for scanning documents via MRZ (Machine Readable Zones) using  Vision API
.package(url: "https://github.com/appintheair/MRZScanner.git", from: "v1.1.2")

Build and test SPM codecov


Library for scanning documents via MRZ using  Vision API.


The example project is located inside the Example folder.


To run it, you need a device with the minimum required OS version.


  • iOS 13.0+
  • macOS 10.15+
  • Mac Catalyst 13.0+
  • tvOS 13.0+

Installation guide

Swift Package Manager

dependencies: [
    .package(url: "https://github.com/appintheair/MRZScanner.git", .upToNextMajor(from: "0.0.1"))

The library has an SPM dependency for MRZ code parsing.


Currently there are 2 scanners available, LiveMRZScanner and ImageMRZScanner. The first is used to scan the MRZ code on a single image, and the second in real-time scanning.

To scan, you need to call the scanFrame / scan method of the scanner.


The library is distributed under the MIT LICENSE.


Stars: 23
Last commit: 1 week 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.

Submit a free job ad (while I'm testing this). The analytics numbers for this website are here.


Release Notes

Version 1.1.2
3 weeks ago

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