2.0.0 is a new major version. See the v2.0.0 transition guide for old/new integration examples and migration steps.
What's new
- New SDK architecture with two modules:
MicroblinkPlatformEngineruns workflows and presents scanners, whileMicroblinkPlatformprovides the standard SwiftUI experience. - Native SwiftUI integration through
MicroblinkPlatform.view(configuration:onEvent:). UIKit apps can present the same flow in aUIHostingController. - Custom UI integration through
MicroblinkPlatformEngine.startSession(_:). Hosts can build their own workflow screens, forms, and uploads usingSession,StepResult, and typedStepInputvalues while retaining the SDK's scanner UI. - Token-based startup for existing Agent API transactions. The host supplies the
sdkConfigurationreturned by its backend, and the engine handles workflow execution through Edge API v2. - Biometrics guided face capture replaces the previous face-capture integration.
- Updated scanner dependencies to BlinkID Verify 4000.0.3 and BlinkCard 3001.0.2.
- Session activity and upload progress are available through
EngineStatusandSession.statusUpdates(). Recoverable failures include an explicit retry action for polling or correcting host input. - SwiftUI appearance customization, with separate
DocumentScanAppearance,CardScanAppearance, andFaceCaptureAppearancesettings. The standard UI includes scalable text and form/upload draft recovery.
Breaking API changes
- Minimum deployment target increased from iOS 16 to iOS 17
- Removed
MicroblinkPlatformSDK,startSDK(), andMicroblinkPlatformSDKDelegate.- Use
MicroblinkPlatform.view(configuration:onEvent:)for the standard UI - Use
MicroblinkPlatformEngine.startSession(_:)for custom UI.
- Use
- Replaced
MicroblinkPlatformServiceSettingswithEngineConfigurationandServiceSettings(sdkConfiguration:). The SDK no longer accepts the workflow ID, proxy URL, additional request headers, correlation ID, or proxy endpoint overrides as startup parameters. Transaction setup belongs to the host/backend. - Removed
MicroblinkPlatformConsentand the SDK consent screen. Collect consent and create the transaction before starting the SDK. If the user declines consent, do not create a transaction or present the SDK. - Delegate callbacks are replaced by
MicroblinkPlatformEvent.finished,.canceled, and.cardScanned. The host owns presentation and dismissal. MicroblinkPlatformResult.statusis replaced byoutcome: SessionOutcome, which distinguishes.verification(transactionId:state:)from.canceled.MicroblinkPlatformResult.transactionIdis now optional.VerificationStatereplacesMicroblinkPlatformResultStatus.MicroblinkPlatformCancelState.cancelReasonis renamed toreasonand usesCancelReason. The cases are.userCanceledand.unsupportedWorkflowVersion; consent denial is handled by the host before startup.CardScanResultreplacesMicroblinkPlatformResultCardScanResult.cardNumberis now optional, andisCardNumberValidis available. Card results remain intermediate output and do not indicate workflow completion.- Platform theme properties that used
UIColor,UIFont, andUIImagenow use SwiftUIColor,Font, andImage. ConfigureMicroblinkPlatformTheme.sharedon the main actor before creating the UI. Existing document scanner theme forwarding properties now accept optional values. - Startup rejects a token whose workflow major/minor version is older than the SDK's version, returning
SessionStartError.unsupportedWorkflowVersionfor custom hosts. Update the workflow before requesting a new token. Patch versions are ignored; equal/newer or absent workflow versions pass this check.