> 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/sdks/sdk-mobile/ios-sdk/modulos/captura-de-documentos.md).

# Document Capture - SelphID

This component requires a minimum of iOS 9

## Introduction

This component is responsible for **capturing and analyzing identity documents**, enabling structured information to be extracted and processed images of the document to be obtained.

Its main features are:

* Internal camera and permissions management.
* Guided assistance for capturing the **front and back** of the document.
* Automatic data extraction using OCR.
* Obtaining processed images of the document and associated elements (face, signature, etc.).
* Extensive configuration options: countries, languages, document types and models.

For a basic SDK integration, see the [Simplified Launch](https://docs.facephi.com/docs.facephi-en/sdks/sdk-mobile/ios-sdk/inicializacion/lanzamiento-simplificado.md)section. This page provides specific information about using this component.

***

## Dependencies

To avoid conflicts and compatibility issues, if the project contains older versions of Facephi libraries (Widgets), they must be removed **completely** before installing the **SDK Mobile**.

### **CocoaPods**

* Facephi libraries are distributed remotely through dependency managers. The **required** dependencies must be installed beforehand (by adding them to the project's Podfile):

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

* To install the **SelphID**component, add the corresponding dependency to the project's `Podfile` .

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

### Swift Package Manager (SPM)

If you use **SPM**, make sure the SDK's required dependencies have already been installed.

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

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

<pre class="language-swift"><code class="lang-swift"><strong>//HTTPS
</strong>https://github.com/facephi-clienters/SDK-SelphidComponentLight.git
//SSH
git@github.com:facephi-clienters/SDK-SelphidComponentLight.git
</code></pre>

***

## Permissions

In the client application where the components will be integrated, the following item must be added to the **Info.plist**:

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

## Available Controllers

| **Controller**    | **Description**                      |
| ----------------- | ------------------------------------ |
| SelphIDController | Main document recognition controller |

***

## Simplified Launch

Once the SDK has been initialized and a new operation created, the component can be launched using any of its available controllers, depending on the required functionality.

```swift
let controller = SelphIDController(data: selphIDConfigurationData, output: { sdkResult in
        // Do whatever with the result
        ...
    }, viewController: viewController)
SDKController.shared.launch(controller: controller)
```

***

## Receiving the result <a href="#recepcion-del-resultado" id="recepcion-del-resultado"></a>

The launch result is returned in a `SdkResult`object, which contains:

* `selphIDResult.finishStatus`
* `selphIDResult.errorType`
* `selphIDResult.data`

***

### Receiving errors <a href="#recepcion-de-errores" id="recepcion-de-errores"></a>

*finishStatus*: Indicates whether the operation completed successfully. Possible values:

```swift
FinishStatus.STATUS_OK
FinishStatus.STATUS_ERROR
```

*errorType*: Errors specific to the widget.

On iOS, `errorType` is an `ErrorType` from the SDK. For a timeout, the Swift enum may be `.SDK_TIMEOUT`, `.SELPHID_TIMEOUT(UIImage?, UIImage?)` or, if interpolated directly, display names such as `SDK_TIMEOUT` or `SELPHID_TIMEOUT`. On iOS, there is no `TIMEOUT` case without a prefix.

To serialize the error, use:

```swift
sdkResult.errorType.toString(addComponentPrefix: "SPD_")
```

This returns `SPD_TIMEOUT` whether the enum is `SDK_TIMEOUT` or `SELPHID_TIMEOUT`.

#### Timeout behavior

In a timeout, the result has:

* `finishStatus`: `STATUS_ERROR`
* `data`: `nil` (no `SelphIDResult`)
* `errorType`: `.SDK_TIMEOUT` or `.SELPHID_TIMEOUT(UIImage?, UIImage?)`

The `SELPHID_TIMEOUT` case retains, when available, the raw document images captured before the timeout (`rawFrontDocument` and `rawBackDocument` from the widget). This information **is not** part of `data` nor is it returned as `rawFrontDocument` / `rawBackDocument` from the success result; it can only be read on iOS by pattern matching on `errorType`:

```swift
if case .SELPHID_TIMEOUT(let frontRaw, let backRaw) = sdkResult.errorType {
    // frontRaw, backRaw: UIImage? (may be nil)
}
```

If the timeout is received as `SDK_TIMEOUT`, it does not include raw images. If it is received as `SELPHID_TIMEOUT`, the associated images may be `nil` when the timeout occurs through the widget's error path (`FWMETimeout`) rather than the delegate `captureTimeout()`.

For native iOS integrations, the serialized value should be treated as `SPD_TIMEOUT` (this includes both `SDK_TIMEOUT` and `SELPHID_TIMEOUT` from the enum).

On iOS, properties such as `timeoutDiagnostic` or `captureProgress` **are not** included in the error `SdkResult` . The component uses `captureProgress` internally to display the diagnostic screen message when `showDiagnostic` is enabled.

If `showDiagnostic` is enabled, the `output` callback is not invoked at the time of the timeout: the diagnostic screen is shown first, and the result is delivered when the user taps Close. With `showDiagnostic` disabled, the callback is invoked immediately.

The following list includes errors from the cross-platform contract; some do not occur on iOS (for example, `SPD_MOVE_FAIL`).

* SPD\_APPLICATION\_CONTEXT\_ERROR: The required application context is null.
* SPD\_BAD\_EXTRACTOR\_CONFIGURATION\_ERROR: Widget: Incorrect extractor configuration
* SPD\_CAMERA\_PERMISSION\_DENIED: The user has denied the permissions.
* SPD\_CANCEL\_BY\_USER: The user has canceled the process.
* SPD\_CANCEL\_LAUNCH: A general SDK cancellation has occurred.
* SPD\_COMPONENT\_LICENSE\_ERROR: The component license is incorrect.
* SPD\_CONTROL\_NOT\_INITIALIZATED\_ERROR: Widget: Initialization error
* SPD\_EMPTY\_LICENSE: The license String is empty.
* SPD\_EXTRACTION\_LICENSE\_ERROR: Widget: License error
* SPD\_HARDWARE\_ERROR: Widget: Hardware error
* SPD\_INITIALIZATION\_ERROR: Initialization error.
* SPD\_MOVE\_FAIL: The user has not moved as specified in the process.
* SPD\_NO\_DATA\_ERROR: The input data is null.
* SPD\_OPERATION\_NOT\_CREATED: There is no operation in progress.
* SPD\_RESOURCES\_NOT\_FOUND: The resource zip file was not found
* SPD\_SETTINGS\_PERMISSION\_ERROR: Widget: Permission error
* SPD\_TIMEOUT: Timeout during the process (`SDK_TIMEOUT` or `SELPHID_TIMEOUT` from the enum).
* SPD\_UNEXPECTED\_CAPTURE\_ERROR: Widget: Capture error
* SPD\_UNKNOWN\_ERROR: Unknown error
* SPD\_WIDGET\_RESULT\_DATA\_ERROR: Error in the widget output data

### Successful execution response - data

The contents of the `data` field depend on the component. In the case of **SelphID**, the following fields are returned:

**frontDocument / tokenFrontDocument**

The front image of the document, processed, cleaned, and cropped to the edges, and its corresponding token.

**backDocument / tokenBackDocument**

The back image of the document, processed, cleaned, and cropped to the edges, and its associated token.

**faceImage / tokenFaceImage**

The image of the face found on the document, if one exists, and its associated token.

**documentCaptured**

This property indicates the document model that was captured when performing a search in SMSearch mode. This allows the application to determine which model, among all those allowed, was detected.

**matchingSidesScore**

This property returns a calculation of the similarity between the data read from the front and back of the document. The calculation checks the similarity between the common fields read from both sides. If the document has common fields, the result is a value between 0.0 and 1.0. The higher the value, the more similar the compared data is. A result of -1.0 means the document has no common fields or information from both sides is not yet available.

**captureProgress property**

This property returns the state of the capture process when the widget finished successfully (`STATUS_OK`). In the event of a timeout, `data` is `nil` and this value is not included in the `SdkResult` of the error callback. The possible values are:

```
Front_Detection_None = 0
Front_Detection_Uncertain = 1
Front_Detection_Completed = 2
Front_Document_Analyzed = 3
Back_Detection_None = 4
Back_Detection_Uncertain = 5
Back_Detection_Completed = 6
Back_Document_Analyzed = 7
```

* **0**: During front-side reading, the widget finished without detecting anything. This usually happens when no document is placed.
* **1**: During front-side reading, the widget finished after partially detecting a document. In this case, some of the expected elements were detected, but not all the required ones.
* **2**: During front-side reading, the widget finished detecting all the document elements. If the widget ends in this state, it is because OCR analysis could not be completed successfully.
* **3**: During front-side reading, the widget finished analyzing the document and extracting all its OCR data. This is the state reached after a successful front-side document reading.

States **4 through 7** are exactly the same, except that they refer to the result of the process when the back is analyzed.

**ocrResults**

This dictionary contains all the data detected in the document. The keys for each field are encoded so that each key contains information about where the value was obtained. For example, the key Front/MRZ/DocumentNumber indicates the DocumentNumber value read from the front of the document in the MRZ region. These keys depend on the captured document and will therefore differ across countries and document models. The dictionary also contains keys with more generic names that do not include location information. These keys contain the most complete value from all the values read for that field.

These keys are as follows:

* **FirstName**: The value associated with this key contains the user's first name.
* **LastName**: The value associated with this key contains the user's last name.
* **DateOfBirth**: The value associated with this key contains the date of birth detected in the document.
* **Gender**: The value associated with this key contains the user's gender detected in the document.
* **Nationality**: The value associated with this key contains the user's nationality detected in the document.
* **DocumentNumber**: The value associated with this key contains the document number.
* **DateOfExpiry**: The value associated with this key contains the document's expiration date.
* **Issuer**: The value associated with this key contains the document issuer.
* **DateofIssue**: The value associated with this key contains the document's issue date.
* **PlaceOfBirth**: The value associated with this key contains the user's place of birth.
* **Address**: The value associated with this key contains the address detected in the document.

Additionally, keys from the results object itself are included to make them easier to find:

* **DocumentCaptured**: Value of the document model captured according to the models .xml. Corresponds to the documentCaptured property.
* **MatchingSidesScore**: Value indicating the correspondence between the document sides that were read. Corresponds to the matchingSidesScore property.

**countryCaptured**

Country of the document.

**documentTypeCaptured**

Document type. Corresponds to those listed in section 5.1.10.

**encodedDataImages**

Available only when the *encodedDataFocusEnabled* flag is enabled, in the MBSDR flavor, and with a resource zip version > 1.41.4. Array of images extracted by the barcode reader.

**tokenEncodedDataImages**

Available only when the *encodedDataFocusEnabled* flag is enabled, in the MBSDR flavor, and with a resource zip version > 1.41.4. Array of tokenized images extracted by the barcode reader.

**personalData**

Reduced set of data obtained from the user:

* issuer
* documentNumber
* issueDate
* expiryDate
* name
* surname
* fullName
* gender
* birthDate
* birthPlace
* nationality
* address
* nfcKey
* numSupport
* MRZ

***

## Advanced information

### Document selector - OPTIONAL

**showDocumentSelector**

Enables the document selector view. It is displayed as soon as the controller is launched.

**enabledCountries**

List of countries in ISO2 format that will appear in the selector. If its value is null or contains no valid values, all those available in the SDK will be displayed.

**enabledDocumentTypes**

List of document types that will appear in the document type selector. If its value is null or contains no values, all those available in the SDK will be displayed.

### Advanced configuration

The component is configured using a `SelphIDConfigurationData`.

**debug**

Enables the component's debug mode.

**resourcesPath**

Sets the path to the widget's resource file. This file contains both graphical and localization resources. The path must be specified relative to the main application's ‘Resources’ folder.

**wizardMode**

Specifies whether the widget is configured to capture both sides (front and back) of the document consecutively. In this mode, the widget is launched only once; after capturing the front, it immediately proceeds to the back.

**showResultAfterCapture**

Specifies whether to display a screen with the captured document image after the analysis process. This screen gives the user the option to repeat the capture process if the image obtained from the document is incorrect.

**showTutorial**

Indicates whether the widget displays the tutorial screen. This view intuitively explains how to capture the document.

**tutorialOnly**

Indicates whether the widget should be launched only to display the tutorial.

**scanMode**

Specifies the OCR scanning mode for documents. Depending on the selection, several document types or one specific type will be scanned and searched for. There are three possible modes:

* **SelphIDScanMode.MODE\_GENERIC**: The generic mode, which allows scanning any document type, regardless of country or document type. This mode is less precise than the following modes, but allows scanning several standard documents.
* **SelphIDScanMode.MODE\_SEARCH**: Search mode allows you to use a whitelist and blacklist, and searches for documents that meet those conditions. These conditions are specified in the "specificData" variable. This mode lets you narrow the search by limiting the number of templates, making it much more precise than generic mode.
* **SelphIDScanMode.MODE\_SPECIFIC**: Search for a specific document. These conditions are specified in the "specificData" property shown below.

**SpecificData**

This property lets you specify which documents will be scanned during the process, if the scan mode (scanMode) is set to SMSearch or SMSpecific.

The following is an example configuration that scans all documents with Spanish nationality:

```swift
// Search mode definition
conf.scanMode = SelphIDScanMode.MODE_SEARCH
conf.specificData = “ES|<ALL>” // ISO code for Spain (ES)
```

**tokenImageQuality**

Indicates the desired quality level for the tokenized images. Value between 0 and 1.

**DocumentType**

The allowed values are as follows:

* **SelphIDDocumentType.ID\_CARD:** The widget is configured to capture identity documents.
* **SelphIDDocumentType.PASSPORT:** The widget is configured to capture passports.
* **SelphIDDocumentType.DRIVERS\_LICENSE:** The widget is configured to capture driver's licenses.
* **SelphIDDocumentType.FOREIGN\_CARD:** The widget is configured to capture foreign documents.
* **SelphIDDocumentType.CUSTOM:** The widget is configured to capture other types of documents that do not correspond to any of the categories above.

**DocumentSide**

The allowed values are as follows:

* **SelphIDDocumentSide.FRONT:** The widget is configured to capture the front of the document.
* **SelphIDDocumentSide.BACK:** The widget is configured to capture the back of the document.
* **SelphIDDocumentSide.ALL:** The widget is configured to capture both sides of the document.

**Timeout**

This is an enumeration that defines the timeout for capturing one side of the document. It has 3 possible values:

* **SelphIDTimeout.SHORT:** 15 seconds.
* **SelphIDTimeout.MEDIUM:** 20 seconds.
* **SelphIDTimeout.LONG:** 25 seconds.
* **SelphIDTimeout.VERY\_LONG**: 60 seconds.

**videoFilename**

Sets the absolute path of the file in which a video of the capture process will be recorded. The application is responsible for requesting the necessary permissions from the phone if that path requires additional permissions. By default, the Widget will not record anything unless a file path is specified using this method.

**DocumentModels**

This property lets you configure, using an XML-formatted string, the document models that the Widget will attempt to capture. By default, these models are defined in a models .xml file included in the resources .zip. This property allows an application to update document models at runtime.

Note: This property does not alter the contents of the resources file.

**generateRawImages**

This property configures the widget to return the full image from the camera used to capture the document. These images are returned in the `rawFrontDocument` and `rawBackDocument` properties of the `results` object, respectively.

**tokenPreviousCaptureData**

When document capture is performed in two calls, this property allows you to pass a dictionary containing information from the previous capture. This enables the widget to intelligently combine the results of both scans and return the combined information from both captures. It also allows the widget to calculate a similarity score between the data from both sides.

If both sides of the document are captured in a single call, this is not necessary because the widget handles this process internally.

**translationsContent**

This advanced property allows you to configure the translations of the text displayed during the process using an XML-formatted string.

Note: This property does not alter the contents of the resources file.

**viewsContent**

This advanced property allows you to configure the widget views using an XML-formatted string.

Note: This property does not alter the contents of the resources file.

**showDiagnostic**

Show diagnostic screens at the end of the process

**showPreviousTip**

Displays a screen before starting the capture, with information about the process and a button to start it.

**vibrationEnabled**

Specifies whether vibration feedback is provided when the process ends.

**animateDismiss**

Indicates whether to animate the SDK's dismissal when the process finishes. Available since **2.8.1**.

**encodedDataFocusEnabled**

Enables barcode reading mode when reading is difficult. Only available in the MBSDR flavor and with the resource zip at a version later than > 1.41.4

### Customization of the component

In addition to the changes that can be made at the SDK level (which are explained in the SDK Customization document), this particular component allows its interface to be modified.

#### Colors

In addition to the standard colors available in the [general customization section](https://docs.facephi.com/docs.facephi-en/sdks/sdk-mobile/ios-sdk/personalizacion.md), the component has two specific colors for the selector view:

* *sdkSelectorBackgroundColor*: The color used for the background of the selection view. Do not confuse it with *sdkBackgroundColor*.
* *sdkCardBackgroundColor*: The color used for the background of the selection cards.

#### Images

In addition to the standard images available in the [general customization section](https://docs.facephi.com/docs.facephi-en/sdks/sdk-mobile/ios-sdk/personalizacion.md), the component has specific images for the selector view. The list can be viewed by accessing the enumeration `R.Image`.

#### Text

Texts can be customized by overriding the corresponding keys in `Localizable.strings`.

Keys with the suffix `_alt` are used for accessibility (VoiceOver).

Example of modifying the text **START** for `es`:

Go to the file **Localizable.strings** of the folder **es.lproj** (if this folder doesn't exist, you'll need to create it).

`"selphid_component_tip_button_message"="EMPEZAR";`

If a key isn't defined, the default value will be used.

| Name                                            | Value                                                                                                                                                                                                                                                                    |
| ----------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `selphid_component_tutorial_message_1`          | Find a background with good contrast.                                                                                                                                                                                                                                    |
| `selphid_component_tutorial_message_2`          | Place the document inside the frame.                                                                                                                                                                                                                                     |
| `selphid_component_tutorial_message_3`          | Avoid glare that makes the document difficult to read.                                                                                                                                                                                                                   |
| `selphid_component_tip_message`                 | **Position** your document **inside the frame.** The photo will be taken automatically.                                                                                                                                                                                  |
| `selphid_component_tip_title`                   | Document photo                                                                                                                                                                                                                                                           |
| `selphid_component_tip_button`                  | START                                                                                                                                                                                                                                                                    |
| `selphid_component_tip_close_button_alt`        | BACK                                                                                                                                                                                                                                                                     |
| `selphid_component_tip_button_alt`              | Start Document Capture                                                                                                                                                                                                                                                   |
| `selphid_component_tip_anim_id_alt`             | Place your identity document horizontally and point your phone at it in portrait orientation.                                                                                                                                                                            |
| `selphid_component_tip_anim_passport_alt`       | Animation of a mobile phone taking a photo of a passport. The document is shown horizontally, open to the page with the photo. The phone is held vertically. A frame appears on the phone's screen. When the passport page fits inside the frame, the app takes a photo. |
| `selphid_component_tip_anim_driving_alt`        | Animation of a mobile phone taking a photo of a driver's license. The document is shown horizontally, and the phone is held vertically. A frame appears on the phone's screen. When the document fits inside the frame, the app takes a photo.                           |
| `selphid_component_tutorial_1_anim_id_alt`      | Place your identity document horizontally and point your phone at it in portrait orientation.                                                                                                                                                                            |
| `selphid_component_tutorial_2_anim_id_alt`      | Place the document on a surface with a different color from the document.                                                                                                                                                                                                |
| `selphid_component_tutorial_3_anim_id_alt`      | There is glare on the document.                                                                                                                                                                                                                                          |
| `selphid_component_tutorial_1_anim_pass_alt`    | A white passport is shown against a white background. The edges of the document are indistinct. The background changes color in an animation.                                                                                                                            |
| `selphid_component_tutorial_2_anim_pass_alt`    | A mobile phone takes a photo of a passport. The document is shown horizontally, and the phone is held vertically. A frame appears on the phone's screen. When the document fits inside the frame, the app takes a photo.                                                 |
| `selphid_component_tutorial_3_anim_pass_alt`    | A passport, viewed from the front. When it is tilted, glare appears on the document.                                                                                                                                                                                     |
| `selphid_component_tutorial_1_anim_driving_alt` | A white driver's license is shown against a white background. The edges of the document are indistinct. The background changes color in an animation.                                                                                                                    |
| `selphid_component_tutorial_2_anim_driving_alt` | A mobile phone takes a photo of a driver's license. The document is shown horizontally, and the phone is held vertically. A frame appears on the phone's screen. When the document fits inside the frame, the app takes a photo.                                         |
| `selphid_component_tutorial_3_anim_driving_alt` | A driver's license, viewed from the front. When it is tilted, glare appears on the document.                                                                                                                                                                             |
| `selphid_component_tip_health_alt`              | Animation of a mobile phone taking a photo of a health insurance card. The document is shown horizontally, and the phone is held vertically. A frame appears on the phone's screen. When the document fits inside the frame, the app takes a photo.                      |
| `selphid_component_tutorial_1_anim_health_alt`  | A white health insurance card is shown against a white background. The edges of the document are indistinct. The background changes color in an animation.                                                                                                               |
| `selphid_component_tutorial_2_anim_health_alt`  | A mobile phone takes a photo of a health insurance card. The document is shown horizontally, and the phone is held vertically. A frame appears on the phone's screen. When the document fits inside the frame, the app takes a photo.                                    |
| `selphid_component_tutorial_3_anim_health_alt`  | A health insurance card, viewed from the front. When it is tilted, glare appears on the document.                                                                                                                                                                        |
| `selphid_component_tip_custom_alt`              |                                                                                                                                                                                                                                                                          |
| `selphid_component_tutorial_1_anim_custom_alt`  |                                                                                                                                                                                                                                                                          |
| `selphid_component_tutorial_2_anim_custom_alt`  |                                                                                                                                                                                                                                                                          |
| `selphid_component_tutorial_3_anim_custom_alt`  |                                                                                                                                                                                                                                                                          |
| `selphid_component_timeout_title`               | Timeout                                                                                                                                                                                                                                                                  |
| `selphid_component_timeout_front_desc`          | Make sure the front of the document is inside the frame and the data is visible.                                                                                                                                                                                         |
| `selphid_component_timeout_back_desc`           | Make sure the back of the document is inside the frame and the data is visible.                                                                                                                                                                                          |
| `selphid_component_timeout_desc`                | Make sure the document is inside the frame and the data is visible.                                                                                                                                                                                                      |
| `selphid_selector_title`                        | Complete your Onboarding                                                                                                                                                                                                                                                 |
| `selphid_selector_country_label`                | Which country is your document from?                                                                                                                                                                                                                                     |
| `selphid_selector_country_search_label`         | Choose a country                                                                                                                                                                                                                                                         |
| `selphid_selector_country_search_placeholder`   | Search for a country                                                                                                                                                                                                                                                     |
| `selphid_selector_country_no_results`           | No results                                                                                                                                                                                                                                                               |
| `selphid_selector_document_label`               | Which document will you use?                                                                                                                                                                                                                                             |
| `selphid_selector_document_dialog_title`        | Choose a document                                                                                                                                                                                                                                                        |
| `selphid_selector_continue`                     | CONTINUE                                                                                                                                                                                                                                                                 |
| `selphid_selector_type_id_card`                 | Identity document                                                                                                                                                                                                                                                        |
| `selphid_selector_type_passport`                | Passport                                                                                                                                                                                                                                                                 |
| `selphid_selector_type_drivers_license`         | Driver's license                                                                                                                                                                                                                                                         |
| `selphid_selector_type_foreign_card`            | Residence card                                                                                                                                                                                                                                                           |
| `selphid_selector_type_credit_card`             | Credit card                                                                                                                                                                                                                                                              |
| `selphid_selector_type_custom`                  | Custom                                                                                                                                                                                                                                                                   |
| `selphid_selector_type_visa`                    | Visa                                                                                                                                                                                                                                                                     |
| `selphid_selector_exit_alert_finish`            | Finish                                                                                                                                                                                                                                                                   |
| `selphid_selector_exit_alert_question`          | Are you sure you want to finish the process?                                                                                                                                                                                                                             |
| `selphid_selector_exit_alert_accept`            | Accept                                                                                                                                                                                                                                                                   |
| `selphid_selector_exit_alert_cancel`            | Cancel                                                                                                                                                                                                                                                                   |

#### **Animations**

The animations for the previous tip and tutorials are **Lottie (.json)**.

To replace them:

* Add the file to the `Resources`.
* Keep the exact same file name.

If they aren't replaced, the default animations will be displayed.

<table><thead><tr><th width="258.640625">Name</th><th>Usage</th></tr></thead><tbody><tr><td>selphid_anim_tip_id_male</td><td>Animation for the identity document pre-tip</td></tr><tr><td>selphid_anim_tip_pass_male</td><td>Animation for the passport pre-tip</td></tr><tr><td>selphid_anim_tip_driver_male</td><td>Animation for the driver's license pre-tip</td></tr><tr><td>selphid_anim_tuto_id_1</td><td>First animation in the identity document tutorial</td></tr><tr><td>selphid_anim_tuto_id_2</td><td>Second animation in the identity document tutorial</td></tr><tr><td>selphid_anim_tuto_id_3</td><td>Third animation in the identity document tutorial</td></tr><tr><td>selphid_anim_tuto_pass_1</td><td>First animation of the Passport tutorial</td></tr><tr><td>selphid_anim_tuto_pass_2</td><td>Second animation of the Passport tutorial</td></tr><tr><td>selphid_anim_tuto_pass_3</td><td>Third animation of the Passport tutorial</td></tr><tr><td>selphid_anim_tuto_driving_1</td><td>First animation of the driver's License tutorial</td></tr><tr><td>selphid_anim_tuto_driving_2</td><td>Second animation of the driver's License tutorial</td></tr><tr><td>selphid_anim_tuto_driving_3</td><td>Third animation of the driver's License tutorial</td></tr><tr><td>selphid_anim_tuto_custom_1</td><td>First animation of the tutorial for a custom document</td></tr><tr><td>selphid_anim_tuto_custom_2</td><td>Second animation of the tutorial for a custom document</td></tr><tr><td>selphid_anim_tuto_custom_3</td><td>Third animation of the tutorial for a custom document</td></tr></tbody></table>
