# 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="ios-sdk/ios-liveness-sdk-new" %}
[ios-liveness-sdk-new](https://doc.youverify.co/know-your-customer-services-kyc/sdk/ios-sdk/ios-liveness-sdk-new)
{% endcontent-ref %}

{% content-ref url="ios-sdk/ios-compat-liveness-sdk" %}
[ios-compat-liveness-sdk](https://doc.youverify.co/know-your-customer-services-kyc/sdk/ios-sdk/ios-compat-liveness-sdk)
{% endcontent-ref %}

{% content-ref url="ios-sdk/ios-document-capture-sdk" %}
[ios-document-capture-sdk](https://doc.youverify.co/know-your-customer-services-kyc/sdk/ios-sdk/ios-document-capture-sdk)
{% endcontent-ref %}
