/scandit-sdk:id-capture-iosfrom scandit-sdk
Integrates Scandit ID Capture in native iOS Swift projects (UIKit/SwiftUI) for scanning passports, driver's licenses, ID cards, and more via MRZ, VIZ, PDF417, or mobile documents. Covers configuration, result handling, rejection rules, AAMVA verification, and SDK migration.
Ships in scandit-sdk. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Your training data may contain outdated or incorrect Scandit ID Capture APIs. The iOS Swift API has changed significantly across major versions, and the native iOS SDK differs substantially from the Android (Kotlin/Java), .NET, Flutter, and React Native SDKs. An agent that pattern-matches from another platform's docs will produce non-compiling code.
Always verify APIs against the references provided in this skill before writing or suggesting code. The most common sources of wrong code:
supportedDocuments (a bitmask enum like .idCardVIZ/.dlVIZ), supportedSides, and session-based callbacks (didCaptureIn session:frameData:) were all replaced in v7. Do not emit any of these.settings.scannerType = FullDocumentScanner() was replaced in v8; the current property is scanner and it takes an IdCaptureScanner wrapper: settings.scanner = IdCaptureScanner(physicalDocument: FullDocumentScanner()).SDC prefix on all types (SDCIdCapture, SDCCapturedId, etc.). These prefixes do not appear in Swift. Never emit SDCIdCapture, SDCIdCaptureSettings, etc. in Swift code.IdCapture.forDataCaptureContext(...), .NET uses IdCapture.Create(...), Flutter uses a different builder. The Swift API is IdCapture(context:settings:).AamvaBarcodeVerifier and DataConsistencyVerifier do not exist in the native iOS SDK. Verification is settings-driven: set rejectForgedAamvaBarcodes = true / rejectInconsistentData = true and read capturedId.verificationResult.NfcScanner exists on native iOS but is not covered by this skill. If the user asks about NFC, refer them to the official documentation.| Do NOT write | Use instead |
|---|---|
IdCapture.Create(context, settings) / IdCapture.forDataCaptureContext(...) | IdCapture(context: context, settings: settings) |
settings.supportedDocuments = [.idCardVIZ, .dlVIZ, ...] | settings.acceptedDocuments = [IdCard(region: .any), ...] |
settings.supportedSides = .frontOnly | settings.scanner = IdCaptureScanner(physicalDocument: SingleSideScanner(...)) |
settings.scannerType = FullDocumentScanner() (v7 API) | settings.scanner = IdCaptureScanner(physicalDocument: FullDocumentScanner()) |
new AamvaBarcodeVerifier(...) / AamvaBarcodeVerifier.Create(...) | settings.rejectForgedAamvaBarcodes = true + read capturedId.verificationResult.aamvaBarcodeVerification |
new DataConsistencyVerifier(...) | settings.rejectInconsistentData = true + read capturedId.verificationResult.dataConsistency |
capturedId.barcodeResult | capturedId.barcode |
capturedId.Images / capturedId.VerificationResult (PascalCase, .NET style) | capturedId.images / capturedId.verificationResult (camelCase) |
SDCIdCapture / SDCCapturedId / any SDC-prefixed type in Swift | IdCapture / CapturedId (no prefix in Swift) |
DataCaptureContext.ForLicenseKey(...) (.NET) or DataCaptureContext.forLicenseKey(...) (Android) | DataCaptureContext.initialize(licenseKey: "...") then DataCaptureContext.shared |
acceptedDocuments will be rejected with RejectionReason.notAcceptedDocumentType.FullDocumentScanner, SingleSideScanner, or MobileDocumentScanner accordingly. See references/advanced.md for details.didReject not just didCapture. Rejections (RejectionReason.timeout, .notAcceptedDocumentType, .documentExpired, .holderUnderage, .forgedAamvaBarcode, .inconsistentData, …) are how the user learns why a scan didn't succeed.IdCapture and BarcodeCapture can run together on one DataCaptureContext (e.g. an airport screen reading a boarding-pass barcode and a passport). Attach each mode to the context (its iOS constructor IdCapture(context:settings:) / BarcodeCapture(context:settings:)), give each its own listener, and toggle each with isEnabled — no need to remove one to add the other. See references/advanced.md.nil, check capturedId.anonymizedFields. See references/advanced.md.data-capture-sdk skill for non-ID-Capture questions. If the user asks about Barcode Capture, SparkScan, MatrixScan, Label Capture, or choosing between products, defer to the data-capture-sdk skill.Based on the user's request, load the appropriate reference file before responding:
supportedDocuments / IdDocumentType / didCaptureIn session:) → read references/migration.md and follow it.Only use APIs that are explicitly documented in the Scandit references below. Do not invent or guess method signatures, parameters, or property names. If unsure whether an API exists or how to call it — or if a compile error occurs — fetch the relevant documentation page before responding. Do not tell the user to check the docs themselves. After answering, always include the relevant link so the user can explore further.
Never construct or guess documentation URLs. Fetch the index page and follow links from there.
Scanning needs a Scandit licence key. For this skill the licence product is native and the licence platform is ios.
Work through these in order — never block the user on MCP:
The Scandit MCP server is connected — call ensure_scanner_setup with product native and platforms ios, app_identifier (the app's bundle or application id; for web, its production domain, never localhost) and env_var SCANDIT_LICENSE_KEY. Do not run the command it returns. Then call get_license_key with the key's id, from that result or from list_license_keys; if list_license_keys shows the key is not a trial, ask the user before fetching it. Show at most a masked preview in chat; never print a full key.
It is not connected — tell the user once that they can connect the remote Scandit MCP server, https://ssl.scandit.com/mcp, in their MCP client, then continue from step 1. Do not edit MCP client configuration yourself.
Authentication is browser-based, so it is not supported headless or in CI. The server provisions trial keys only; it never creates, revokes, or modifies production licences.
The user declines, or has no MCP client — they generate a key themselves at https://ssl.scandit.com (no account yet: https://ssl.scandit.com/dashboard/sign-up?p=test) and paste it in.
Then put the key into the code: write it into the licence-key call in place of the placeholder — the key get_license_key returned, or the one the user pastes or gives you — still showing only a masked preview in chat. Do not search the project, its files or the environment for a key.
| Topic | Resource |
|---|---|
| Get Started (iOS) | Get Started (iOS Swift) |
| Advanced topics | Advanced Configurations (iOS) |
| SDK version migration | references/migration.md · Migrate 6→7 · Migrate 7→8 |
| Full API reference | ID Capture API (iOS) |
All classes available on the native iOS SDK. The modern document/scanner API (acceptedDocuments, IdCaptureScanner, FullDocumentScanner) landed at 7.0; the rejection flags and verification result model at 7.6/8.0. This skill targets the current 8.x stable release.
IdCapture — IdCapture(context: DataCaptureContext, settings: IdCaptureSettings); isEnabled (get/set); addListener(_:) / removeListener(_:) (IdCaptureListener); static recommendedCameraSettings; feedback (IdCaptureFeedback); reset(); applySettings(_:).IdCaptureSettings — IdCaptureSettings(); properties: scanner (IdCaptureScanner), acceptedDocuments / rejectedDocuments ([any IdCaptureDocument]), rejectVoidedIds, rejectExpiredIds, rejectIdsExpiringIn (Duration?), rejectNotRealIdCompliant, rejectForgedAamvaBarcodes, rejectInconsistentData, rejectHolderBelowAge (Int?), anonymizationMode (IdAnonymizationMode); methods setIncludeImage(_:for:) / includeImage(for:), addAnonymizedField(_:forDocument:), removeAnonymizedField(_:forDocument:).IdCaptureScanner — IdCaptureScanner(physicalDocument: (any PhysicalDocumentScanner)?) and IdCaptureScanner(physicalDocument:mobileDocument:); physicalDocument / mobileDocument properties.FullDocumentScanner() — both sides, all zones; SingleSideScanner(enablingBarcode:machineReadableZone:visualInspectionZone:) — single side, selected zones; props barcode / machineReadableZone / visualInspectionZone.MobileDocumentScanner — MobileDocumentScanner(enablingIso180135:ocr:); iso180135 / ocr props. iso180135 uses ISO 18013-5 QR + Bluetooth handover; ocr reads a mobile document displayed on another device's screen.IdCaptureDocument protocol, props region: IdCaptureRegion + documentType: IdCaptureDocumentType): IdCard(region:), DriverLicense(region:), Passport(region:), VisaIcao(region:), ResidencePermit(region:), HealthInsuranceCard(region:), RegionSpecific(subtype: RegionSpecificSubtype).IdCaptureRegion enum — .any, .euAndSchengen, and ~250 region values (.us, .uk, .uae, .germany, …).IdCaptureListener protocol — idCapture(_:didCapture:) (required), idCapture(_:didReject:reason:) (required).CapturedId — fullName / firstName / lastName (String?), sex / sexType, dateOfBirth / dateOfExpiry / dateOfIssue (DateResult?), nationality / nationalityISO, address, age (Int?), isExpired, document ((any IdCaptureDocument)?), issuingCountry (IdCaptureRegion), documentNumber / documentAdditionalNumber, vizResult / mrzResult / barcode / mobileDocumentResult / mobileDocumentOcrResult, images (IdImages), verificationResult (VerificationResult), usRealIdStatus.DateResult — day / month / year (Int).IdImages — face (UIImage?), frame (UIImage?), croppedDocument(side:) (UIImage?).VerificationResult — dataConsistency (DataConsistencyResult?), aamvaBarcodeVerification (AamvaBarcodeVerificationResult?).DataConsistencyResult — allChecksPassed, frontReviewImage (UIImage?).AamvaBarcodeVerificationResult — status (AamvaBarcodeVerificationStatus: .authentic / .likelyForged / .forged).IdCaptureOverlay — IdCaptureOverlay(idCapture:view:); idLayoutStyle (IdLayoutStyle: .rounded / .square), idLayoutLineStyle (IdLayoutLineStyle: .bold / .light), showTextHints, textHintPosition, setFrontSideTextHint(_:) / setBackSideTextHint(_:), capturedBrush / localizedBrush / rejectedBrush.IdCaptureFeedback — IdCaptureFeedback(); idCaptured / idRejected (Feedback); static default.DataCaptureContext — DataCaptureContext.initialize(licenseKey:) then DataCaptureContext.shared; setFrameSource(_:completionHandler:); removeCurrentMode() / removeAllModes().Camera — Camera.default; switch(toDesiredState:) (.on / .off); apply(_:).DataCaptureView — DataCaptureView(context:frame:); autoresizingMask.RejectionReason enum — .notAcceptedDocumentType, .invalidFormat, .documentVoided, .timeout, .documentExpired, .documentExpiresSoon, .notRealIdCompliant, .holderUnderage, .forgedAamvaBarcode, .inconsistentData.IdAnonymizationMode enum — .none, .fieldsOnly, .imagesOnly, .fieldsAndImages.IdImageType enum — .face, .croppedDocument, .frame.IdLayoutStyle / IdLayoutLineStyle / TextHintPosition — overlay appearance enums.NfcScanner, NfcScannerListener) — native iOS only; covered by a separate skill.IdCaptureDeserializer) — available on iOS native but not in scope here.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
scandit, id-capture, document-scanning, identity-verification, ios-sdk
87 skills in this plugin
/barcode-capture-androidScandit Barcode Capture (`BarcodeCapture`) in native Android (Kotlin/Java) projects — the low-level, full-control single-barcode scanning mode (BarcodeCapture + DataCaptureView + overlay), without the pre-built SparkScan UI. Use for integration, symbology and scan settings, result handling, overlay customization, SDK version migration (v6→v7→v8), replacing third-party scanners (ZXing, ML Kit), or troubleshooting./barcode-capture-capacitorCapacitor — Scandit Barcode Capture (`BarcodeCapture`) in Capacitor (Ionic) hybrid apps via the Scandit Capacitor plugins (`ScanditCaptureCorePlugin`), the low-level, full-control single-barcode scanning mode (BarcodeCapture + DataCaptureView + BarcodeCaptureOverlay) without the pre-built SparkScan UI, not the browser-only web SDK. Use for integration, symbology settings, result handling, viewfinder and feedback customization, SDK version migration, replacing a third-party scanner (@capacitor-mlkit/barcode-scanning), or troubleshooting./barcode-capture-cordovaCordova — Scandit Barcode Capture (`BarcodeCapture`) in Apache Cordova hybrid apps via the `scandit-cordova-datacapture-*` plugins (global `window.Scandit`), the low-level, full-control single-barcode scanning mode (BarcodeCapture + DataCaptureView + BarcodeCaptureOverlay) without the pre-built SparkScan UI, not the browser-only web SDK. Use for integration, scan settings, result handling, overlay wiring, SDK version migration, replacing a third-party scanner (phonegap-plugin-barcodescanner), or troubleshooting./barcode-capture-flutterScandit Barcode Capture (`BarcodeCapture`) in Flutter (Dart) projects — the low-level, full-control single-barcode scanning mode (BarcodeCapture + DataCaptureView + BarcodeCaptureOverlay), without the pre-built SparkScan UI. Use for integration, scan settings, result handling, overlay customization, SDK version migration, replacing a third-party scanner (mobile_scanner, ML Kit), or troubleshooting./barcode-capture-iosScandit Barcode Capture (`BarcodeCapture`) in native iOS (Swift) projects — the low-level, full-control single-barcode scanning mode (BarcodeCapture + DataCaptureView + overlay), without the pre-built SparkScan UI. Use for integration, scan settings, result handling, overlay customization, SDK version migration (v6→v7→v8), replacing a third-party barcode scanner, or troubleshooting./barcode-capture-kmpScandit Barcode Capture (`BarcodeCapture`) in Kotlin Multiplatform (KMP) and Compose Multiplatform projects using Scandit's KMP SDK (`com.kmp.datacapture.*` imports) — the low-level, full-control single-barcode scanning mode without the pre-built SparkScan UI. Use for integration, scan settings, shared-code result handling, overlay and viewfinder customization, or troubleshooting.npx claudepluginhub scandit/skills --plugin scandit-sdkOther plugins' skills for the same job