# iOS SDK

This documentation provides a comprehensive guide to integrating the Youverify Liveness iOS and Document Capture SDKs into your mobile applications. These SDKs enable real-time liveness detection to verify that users are physically present as well the capture of users document for real-time information extraction and verification. Two versions of our Liveness SDKs are available to suit different iOS versions and development frameworks:

* **YouverifyLivenessSDK:** The recommended version, built with SwiftUI, requiring a minimum of iOS 14. Supports both Passive and Active Liveness.
* **YouverifyLivenessSDKCompat:** The compatibility version, built with UIKit, requiring a minimum of iOS 12. Supports only Active Liveness.

### Choosing the Right SDK

Select the SDK that best fits your application's needs based on iOS version support and framework:

<table><thead><tr><th>Feature</th><th>YouverifyLivenessSDK</th><th width="206.783203125">YouverifyLivenessSDKCompat</th><th width="239.1044921875">YouverifyDocumentCaptureSDK</th></tr></thead><tbody><tr><td><strong>Minimum iOS Version</strong></td><td>iOS 14</td><td>iOS 12</td><td>iOS 15</td></tr><tr><td><strong>Framework</strong></td><td>SwiftUI</td><td>UIKit</td><td>SwiftUi/UIKit</td></tr><tr><td><strong>Passive Liveness</strong></td><td>Supported (iOS 15+)</td><td>Not supported</td><td>N/A</td></tr><tr><td><strong>Active Liveness</strong></td><td>Supported</td><td>Supported</td><td>N/A</td></tr><tr><td><strong>Recommended for</strong></td><td>Modern apps using SwiftUI</td><td>Legacy apps using UIKit</td><td>Both SwiftUI and UIKit</td></tr></tbody></table>

* **Passive Liveness**: Detects liveness without user interaction (e.g., blinking, skin texture analysis). Available only in ***YouverifyLivenessSDK***.
* **Active Liveness**: Requires users to perform actions (e.g., head movements, answering questions). Supported in both SDKs, with minimum iOS requirements as specified.

<mark style="color:red;">**Note**</mark>: If targeting iOS 14 with YouverifyLivenessSDK, only Active Liveness is available; Passive Liveness requires iOS 15+.

For in-depth guidance on integrating each SDK, refer to the following sections:

{% content-ref url="/pages/90d56360f36c6861d625fa88c7707b9a1b59c321" %}
[iOS Liveness SDK \*New](/know-your-customer-services-kyc/sdk/ios-sdk/ios-liveness-sdk-new.md)
{% endcontent-ref %}

{% content-ref url="/pages/yLiEUiLh4Gv7hm2RQgyz" %}
[iOS (Compat) Liveness SDK](/know-your-customer-services-kyc/sdk/ios-sdk/ios-compat-liveness-sdk.md)
{% endcontent-ref %}

{% content-ref url="/pages/43O6s7JnnnznecYK9pQt" %}
[iOS Document  Capture SDK](/know-your-customer-services-kyc/sdk/ios-sdk/ios-document-capture-sdk.md)
{% endcontent-ref %}


---

# Agent Instructions: 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:

```
GET https://doc.youverify.co/know-your-customer-services-kyc/sdk/ios-sdk.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
