Swiftpack.co - IDScanNet/IDScanIDParserIOS as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by IDScanNet.
IDScanNet/IDScanIDParserIOS 2.220113.1
The ID Parser Swift Package for iOS
⭐️ 0
🕓 4 days ago
iOS
.package(url: "https://github.com/IDScanNet/IDScanIDParserIOS.git", from: "2.220113.1")

IDScanIDParser


Installation

Installing from Xcode

Add the package by selecting Your project namePackage Dependencies+.


Search for the IDScanIDParser using the repo's URL:

https://github.com/IDScanNet/IDScanIDParserIOS.git

Next, set the Dependency Rule to be Up to Next Major Version and specify 1.0.0 as the lower bound.

Then, select Add Package.


Choose the parsers that you want to add to your project.


Adding IDScanIDParser to a Package.swift

For integration via a Package.swift manifest instead of Xcode, you can add IDScanIDParser to the dependencies array of your package:

let package = Package(
    name: "MyPackage",
    dependencies: [
        .package(url: "https://github.com/IDScanNet/IDScanIDParserIOS.git", .upToNextMajor(from: "1.0.0"))
    ],
    // ...
)

Then, in any target that depends on the parsers, add it to the dependencies array of that target:

.target(
  name: "MyTarget",
  dependencies: [
    .product(name: "IDScanPDFParser", package: "IDScanIDParserIOS"),
    .product(name: "IDScanMRZParser", package: "IDScanIDParserIOS")
  ]
),

How to Activate

Obtaining a License Key for PDF parser

In order to receive the License Key send an email to support@idscan.net with the Bundle ID. Please be sure to provide your order number in the email once ready to upgrade from trial to production mode. A unique Serial number/Registration Key for this Bundle ID.

Adding the License Key to your project

Create an IDScanComponents.plist file in your project and fill it in as follows:


Usage

import IDScanPDFParser
import IDScanMRZParser
let pdfParser = IDScanPDFParser()
let parsedStringAsDic = pdfParser.parse("raw string")
        
let mrzParser = IDScanMRZParser()
let parsedStringAsDic = mrzParser.parse("raw string")

GitHub

link
Stars: 0
Last commit: 4 days ago
jonrohan Something's broken? Yell at me @ptrpavlik. Praise and feedback (and money) is also welcome.

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