> For the complete documentation index, see [llms.txt](https://docs.caf.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.caf.io/caf-sdk/ios/standalone-modules/caffacelivenesslite/start-sdk.md).

# Start Liveness Verification

Quick links: [Overview](/caf-sdk/ios/standalone-modules/caffacelivenesslite.md) | [Building the SDK](/caf-sdk/ios/standalone-modules/caffacelivenesslite/builder.md) | [Start Liveness Verification](/caf-sdk/ios/standalone-modules/caffacelivenesslite/start-sdk.md) | [UI Customization](/caf-sdk/ios/standalone-modules/caffacelivenesslite/ui-customization.md) | [Installation](/caf-sdk/ios/standalone-modules/caffacelivenesslite/installation.md) | [Current Version](/caf-sdk/ios/standalone-modules/caffacelivenesslite/current-version.md) | [Requirements](/caf-sdk/ios/standalone-modules/caffacelivenesslite/requirements.md) | [Source Code](/caf-sdk/ios/standalone-modules/caffacelivenesslite/source-code.md) | [Result Reference](/caf-sdk/ios/standalone-modules/caffacelivenesslite/result-reference.md) | [Release Notes](/caf-sdk/ios/standalone-modules/caffacelivenesslite/release-notes.md) | [FAQ](/caf-sdk/ios/standalone-modules/caffacelivenesslite/faq_caf_face_liveness_sdk.md)

## Calling startSDK

Use `CafFaceLivenessLiteSDK.startSDK` with the required parameters from your view controller.

| Parameter                                 | Required | Description                                                                 |
| ----------------------------------------- | -------- | --------------------------------------------------------------------------- |
| `viewController: UIViewController`        | Yes      | The presenting view controller                                              |
| `mobileToken: String`                     | Yes      | Usage token associated with your CAF account                                |
| `personId: String`                        | Yes      | User identifier                                                             |
| `customLocalization: String?`             | No       | Strings table name for custom iProov localization (e.g., "stringsBundle")   |
| `customLocalizationBundle: Bundle?`       | No       | Bundle containing the custom strings table (iProov `options.stringsBundle`) |
| `uiCustomization: CerttaUiCustomization?` | No       | Visual branding for the liveness screen (default: `nil`, no customization)  |
| `environment: CafEnvironment`             | No       | `.dev`, `.beta`, `.prod` (default: `.prod`)                                 |
| `loading: Bool`                           | No       | Show SDK loading screen (default: `true`)                                   |

{% hint style="warning" %}
**Breaking in 2.0.0:** `executeFaceAuth` was removed. The SDK starts an async transaction and returns only `signedResponse`. Retrieve the final liveness outcome from your backend.
{% endhint %}

### Example

```swift
import CafFaceLivenessLite

class ViewController: UIViewController {
    private let sdk = CafFaceLivenessLiteSDK()

    override func viewDidLoad() {
        super.viewDidLoad()
        sdk.delegate = self
    }

    func startLiteLiveness() {
        sdk.startSDK(
            viewController: self,
            mobileToken: "your_mobile_token",
            personId: "your_person_id",
            customLocalization: nil,
            customLocalizationBundle: nil,
            environment: .prod,
            loading: true
        )
    }
}
```

### Custom localization with a framework bundle

When custom `Localizable.strings` ship inside a framework (or another non-main bundle), pass both the table name and the bundle:

```swift
sdk.startSDK(
    viewController: self,
    mobileToken: "your_mobile_token",
    personId: "your_person_id",
    customLocalization: "Localizable",
    customLocalizationBundle: Bundle(for: CafFaceLivenessLiteSDK.self),
    environment: .prod,
    loading: true
)
```

Localization reference: [iProov Localization](https://github.com/iProov/ios/wiki/Localization)

### UI customization

To brand the liveness screen — header bar, guidance prompt, area around the face oval and font — pass a `CerttaUiCustomization` through the `uiCustomization` parameter. Available from **2.1.0** and fully optional. See [UI Customization](/caf-sdk/ios/standalone-modules/caffacelivenesslite/ui-customization.md).


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.caf.io/caf-sdk/ios/standalone-modules/caffacelivenesslite/start-sdk.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
