Skip to main content
DeepIDVWorkflowView runs a workflow you built in the Admin Console against one session, step by step, and reports one result when the user is done. Supported steps: ID verification (one, two or three documents) and face liveness. A workflow with any other step fails with .validation before the camera opens.

Three ways to start

Every initializer also takes documentCamera: to choose the camera for this view only. See Camera.

Sessions from your backend

Creating the session on your backend keeps the user’s details on your server, ties the session to a signed-in user, and lets your proxy refuse requests for anyone else’s session.

Present it full screen

The view fills the screen and runs the camera. Present it with fullScreenCover (SwiftUI) or a full-screen UIHostingController (UIKit), and close it from onResult.
UIKit

What the user sees

iPhone screen: a lock badge with 'Preparing your verification, this only takes a moment'.iPhone screen: the captured sample ID and a selfie thumbnail with 'Verifying your identity, securely sending your photos' and a progress bar.iPhone screen: a retry badge with 'We couldn't read your ID', advice to use good light and avoid glare, '2 attempts left', and Try again and Cancel buttons.iPhone screen: a paper-plane badge with 'Thanks, you're done. We've received your details.' and a Done button.

Around the steps: preparing, sending, a retry, and the closing screen.

To skip the closing screen and return to your app straight away, set showsCompletionScreen to false in DeepIDVConfig.

Handle the result

onResult fires exactly once, with a Result<WorkflowRunResult, DeepIDVError>.
  • .success means the run ended normally: submitted, or out of attempts (sessionFailure is set).
  • .failure is for errors: network, permissions, cancellation, a session that can’t run.
Details: Results and the decision, Failures, Errors.

Headless session calls

To inspect or drive a session without UI: Each returns a WorkflowExecutionState (or WorkflowSession for create) with the steps, their status, attempts left and failures.