
id-capture-ios
Cursor Skill
Use when ID Capture (Scandit identity-document scanning — passports, driver's licenses, ID cards, residence permits, health-insurance cards, visas, region-specific subtypes, reading MRZ / VIZ / PDF417 barcode on identity documents / mobile-document data) is involved in a native iOS Swift project (UIKit or SwiftUI) — whether the user mentions ID Capture directly, says "scan a passport / driver's license / ID card / identity document in Swift on iOS", or the codebase already uses `IdCapture` and something needs to be added, changed, fixed, or customized. This includes adding ID Capture to a new iOS UIKit app, configuring `IdCaptureSettings` with `acceptedDocuments` (`IdCard(region: .any)`, `DriverLicense(region: .us)`, `Passport(region: .any)`, …) and a `scanner` (`IdCaptureScanner(physicalDocument:)` wrapping `FullDocumentScanner` / `SingleSideScanner` / `MobileDocumentScanner`), creating the mode with `IdCapture(context:settings:)`, handling results through `IdCaptureListener.idCapture(_:didCapture:)` / `idCapture(_:didReject:reason:)`, reading `CapturedId` (`fullName`, `dateOfBirth`, `dateOfExpiry`, `documentNumber`, `mrzResult`, `vizResult`, `barcode`, `mobileDocumentResult`, `images`, `verificationResult`), hosting the preview with `DataCaptureView` + `IdCaptureOverlay` inside a `UIViewController`, managing the camera lifecycle across `viewWillAppear` / `viewDidDisappear`, rejection rules (expired / voided / underage / forged-AAMVA / inconsistent-data), data-consistency / AAMVA verification, anonymization, or upgrading the Scandit iOS SDK version. If the project is native iOS Swift (UIKit or SwiftUI) and ID Capture is in play, use this skill. Note: code examples in this skill use UIKit — SwiftUI hosting patterns may need adaptation.
AI agent skills for integrating the Scandit Data Capture SDK — product selection, documentation, and implementation guides for barcode scanning, ID capture, and smart label capture.