Add the package by selecting
Your project name →
Package Dependencies →
Search for the IDScanIDParser using the repo's URL:
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.
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
array of that target:
.target( name: "MyTarget", dependencies: [ .product(name: "IDScanPDFParser", package: "IDScanIDParserIOS"), .product(name: "IDScanMRZParser", package: "IDScanIDParserIOS") ] ),
In order to receive the License Key send an email to email@example.com 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.
IDScanComponents.plist file in your project and fill it in as follows:
import IDScanPDFParser import IDScanMRZParser
let pdfParser = IDScanPDFParser() let parsedStringAsDic = pdfParser.parse("raw string") let mrzParser = IDScanMRZParser() let parsedStringAsDic = mrzParser.parse("raw string")