PLATFORMS << NATIVE MOBILE
MRZ Scanner for iOS
A Swift package with the camera screen, AR mode and photo scanning.
- PackageMRZScannerAR (Swift package)
- RequiresiOS 15 and later
- Version2.5.0
Passport & ID
P<UTOERIKSSON<<ANNA<MARIA<<<<<
L898902C36UTO7408122F12041
L898902C36UTO7408122F12041
ERIKSSON, ANNA MARIAL898902C3 · UTO · check digits valid
- 1InstallGet the SDK from Downloads in the portal.
- 2Register your keyA 90-day trial key comes with your account; register it once at start.
- 3ScanOpen the camera or scan a photo; read the MRZ text and the parsed fields.
Install
The Swift package (MRZScannerAR with MRZScannerCore.xcframework) is under Downloads in the portal. Add it to your Xcode project as a Swift package.
Scan a document
iOSswift
import MRZScannerAR
_ = MRZScan.registerLicense("MRZ2...") // once, at start
MRZScan.present(from: self, settings: #"{"documentTypes":["passport","id"]}"#) { resultJSON in
// {"status":"read","reads":[{"text":"P<UTO...","fields":{...},"checkDigitsValid":true}]}
print(resultJSON)
}