github microblink/microblink-platform-ios v2.0.0

2 hours ago

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: MicroblinkPlatformEngine runs workflows and presents scanners, while MicroblinkPlatform provides the standard SwiftUI experience.
  • Native SwiftUI integration through MicroblinkPlatform.view(configuration:onEvent:). UIKit apps can present the same flow in a UIHostingController.
  • Custom UI integration through MicroblinkPlatformEngine.startSession(_:). Hosts can build their own workflow screens, forms, and uploads using Session, StepResult, and typed StepInput values while retaining the SDK's scanner UI.
  • Token-based startup for existing Agent API transactions. The host supplies the sdkConfiguration returned 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 EngineStatus and Session.statusUpdates(). Recoverable failures include an explicit retry action for polling or correcting host input.
  • SwiftUI appearance customization, with separate DocumentScanAppearance, CardScanAppearance, and FaceCaptureAppearance settings. 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(), and MicroblinkPlatformSDKDelegate.
    • Use MicroblinkPlatform.view(configuration:onEvent:) for the standard UI
    • Use MicroblinkPlatformEngine.startSession(_:) for custom UI.
  • Replaced MicroblinkPlatformServiceSettings with EngineConfiguration and ServiceSettings(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 MicroblinkPlatformConsent and 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.status is replaced by outcome: SessionOutcome, which distinguishes .verification(transactionId:state:) from .canceled. MicroblinkPlatformResult.transactionId is now optional. VerificationState replaces MicroblinkPlatformResultStatus.
  • MicroblinkPlatformCancelState.cancelReason is renamed to reason and uses CancelReason. The cases are .userCanceled and .unsupportedWorkflowVersion; consent denial is handled by the host before startup.
  • CardScanResult replaces MicroblinkPlatformResultCardScanResult. cardNumber is now optional, and isCardNumberValid is available. Card results remain intermediate output and do not indicate workflow completion.
  • Platform theme properties that used UIColor, UIFont, and UIImage now use SwiftUI Color, Font, and Image. Configure MicroblinkPlatformTheme.shared on 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.unsupportedWorkflowVersion for custom hosts. Update the workflow before requesting a new token. Patch versions are ignored; equal/newer or absent workflow versions pass this check.

Don't miss a new microblink-platform-ios release

NewReleases is sending notifications on new releases.