> For the complete documentation index, see [llms.txt](https://docs.facephi.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.facephi.com/docs.facephi-en/products/idv-suite/flujos-and-integraciones/configuracion-tecnica-del-cliente/sdk-mobile/ios-sdk/modulos/captura-facial-con-iad.md).

# Face Capture with IAD

This component requires a minimum iOS13 version

## Introduction <a href="#id-1-introduccion" id="id-1-introduccion"></a>

Face Capture with video Injection Attack Detection is performed by the **Selphi IAD Component**.

This component is responsible for capturing a user's selfie and extracting the most relevant facial features, incorporating a set of preventive security controls aimed at detecting untrusted environments. During the process, the following steps are carried out, among others:

* Internal management of cameras and permissions.
* Detection of spoofing attempts through videos or manipulated camera sources.
* Guided assistance during Face Capture.
* Generation of biometric templates and user images.

***

## Dependency <a href="#id-2-dependencia" id="id-2-dependencia"></a>

### CocoaPods

Facephi libraries are distributed remotely through dependency managers. On iOS, **CocoaPods**. The dependencies **mandatory** that must have been installed beforehand (by adding them to the project's Podfile) are:

```swift
  pod 'FPHISDKMainComponent', '~> $VERSION'
```

To install the component **SelphiIAD**, add the corresponding dependency in the `Podfile` of the project, along with the required SDK dependencies.

```swift
  pod 'FPHISDKSelphiIADComponent', '~> $VERSION'
```

### Swift Package Manager (SPM)

If you use **SPM**, make sure the SDK's required dependencies are previously installed.

```sh
//HTTPS
https://github.com/facephi-clienters/SDK-SdkPackage-SPM.git
//SSH
git@github.com:facephi-clienters/SDK-SdkPackage-SPM.git
```

To install the component **SelphiIAD**, include it in the project's modules.

```swift
//HTTPS
https://github.com/facephi-clienters/SDK-Selphi_IAD_Component-SPM.git
//SSH
git@github.com:facephi-clienters/SDK-Selphi_IAD_Component-SPM.git
```

***

## Permissions

In the client application where the components will be integrated, it is necessary to include the following element in the file **Info.plist**:

```
Camera usage must be allowed (Privacy - Camera Usage Description)
```
