iOS Verificator SDK sample. Scan strings from ID card and verify selfies.
Integration Verificator iOS SDK requires at least iOS version 13.0
Manually copy oleg-verificator-sdk
directory into your project. Then add VerificatorSDK
in Project -> General -> Frameworks, Libraries, and Embedded Content.
Add usage description for NSCameraUsageDescription
application Info.plist. Not adding this description will lead to killing the application on SDK session start.
import VerificatorSDK
Verificator.startCardIdReading { (result) in
}
where result
is VerificatorStatus<[String]>
SDK returns array of strings for happy path.
Verificator.startSelfieTaking { (result) in
}
where result
is VerificatorStatus<Double>
SDK returns face confidence level for happy path.
let configuration = VerificatorConfiguration(tintColor: UIColor.red, errorHandlingMode: .manual)
Verificator.configure(configuration: configuration)
tintColor
- Tint color for the active elements (aka buttons). Default #4FB1A9
errorHandlingMode
- Specifies error handling mode. Automatic by default.
automatic
- SDK handles errors by itself and displays appropriate messages. VerificatorStatus.error is never sent.
manual
- SDK invokes callback in case of an error. It is up to the appliation to handle errors.