> 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/builder.md).

# Building the SDK

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)

## Creating a Liveness SDK instance

Instantiate `CafFaceLivenessLiteSDK` directly and configure behavior via the constructor and `startSDK` parameters.

### Constructor

```swift
CafFaceLivenessLiteSDK(enableSecurity: Bool = true)
```

| Parameter        | Type | Required | Description                                                                                                                                                         |
| ---------------- | ---- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `enableSecurity` | Bool | No       | Enables security monitoring: jailbreak detection, instrumentation detection, and dylib monitoring. Default: `true`. Disable only in automated testing environments. |

### startSDK Parameters

| Parameter                  | Type                   | Required | Description                                                                                                                                                                               |
| -------------------------- | ---------------------- | -------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `mobileToken`              | String                 | Yes      | Mobile authentication token                                                                                                                                                               |
| `personId`                 | String                 | Yes      | Person ID for liveness                                                                                                                                                                    |
| `environment`              | CafEnvironment (enum)  | No       | `.prod` (default), `.beta`, `.dev`                                                                                                                                                        |
| `loading`                  | Bool                   | No       | Shows SDK loading screen (default: `true`)                                                                                                                                                |
| `customLocalization`       | String?                | No       | Use a custom strings table/bundle prefix (e.g., `"stringsBundle"`)                                                                                                                        |
| `customLocalizationBundle` | Bundle?                | No       | Bundle that contains the custom strings table (maps to iProov `options.stringsBundle`)                                                                                                    |
| `uiCustomization`          | CerttaUiCustomization? | No       | Optional visual branding for the liveness screen: header bar, prompt, mask area and font. See [UI Customization](/caf-sdk/ios/standalone-modules/caffacelivenesslite/ui-customization.md) |

Note: `customLocalization` maps to the iProov strings table name (omit the `.strings` extension). When strings live outside the main app bundle (for example inside a redistributed framework), also pass `customLocalizationBundle`. See the iProov localization guide: [iProov Localization](https://github.com/iProov/ios/wiki/Localization).

{% hint style="info" %}
From **2.0.0**, Face Auth (`executeFaceAuth`) is no longer available on Lite. After a successful capture the SDK starts an async transaction and returns only `signedResponse`; your backend retrieves the final liveness result out-of-band.
{% endhint %}

### Example

```swift
import CafFaceLivenessLite

final class YourViewController: UIViewController {
    private let sdk = CafFaceLivenessLiteSDK(enableSecurity: true)

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

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


---

# 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/builder.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.
