> For the complete documentation index, see [llms.txt](https://legacy-docs.usesmileid.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://legacy-docs.usesmileid.com/integration-options/mobile/ios/smile-identity-ui/presenting-screens.md).

# Presenting Screens

Step 1 : Call Smile UI

Call the required screen or screens as per the example below

```
SIDCaptureManager.Builder(delegate: <delegate>, captureType: <CaptureType>)
```

The above will call a screen as per the **CaptureType** specified and you have 4 options to choose from

**CaptureType.SELFIE**\
Will show the selfie screen then the review screen before sending the results back to your application

**CaptureType.ID\_CAPTURE**\
Will show the ID card capture screen then send results back to your application

**CaptureType.SELFIE\_AND\_ID\_CAPTURE**\
Will show the selfie screen then the review screen and then the id card capture screen before sending the results back to your application\
\
**CaptureType.ID\_CAPTURE\_AND\_SELFIE**\
Will show the id card capture screen then the selfie screen then the review screen and before sending the results back to your application.

### Step 2: Get Results Using from the delegate

The delegate will have a two methods which are called from when the capture is either complete or there has been an error

SIDCaptureManagerDelegate

#### Success

```
func onSuccess(tag:String,selfiePreview:UIImage?,idFrontPreview:UIImage?,idBackPreview:UIImage?)
```

* **Tag String**:this is either the tag supplied to the manager or if none was supplied this is an autogenerated tag from the SDK identifying the job
* **selfiePreview:UIImage?** This is the image from the preview capture which is shown on the review screen only will be returned if there was a selfie capture specified
* **idFrontPreview:UIImage?** This is the front of document capture and only will be returned if there was a id document front capture is specified
* **idBackPreview:UIImage?** This is the front of document capture and only will be returned if there was a id document back capture is specified

#### Error

```
func onError(tag:String,sidError:SIDError)
```

* **Tag String**:this is either the tag supplied to the manager or if none was supplied this is an autogenerated tag from the SDK identifying the job
* **sidError:SIDError:** The failure reason

### Possible values for error are

**SIDError.UNABLE\_TO\_CAPTURE\_ID\_CARD\_IMAGE**

**SIDError.UNABLE\_TO\_CAPTURE\_SELFIE\_PREVIEW\_IMAGE**

**SIDError.UNABLE\_TO\_CAPTURE\_FRONT\_OF\_ID**

**SIDError.UNABLE\_TO\_CAPTURE\_BACK\_OF\_ID**

**SIDError.ID\_CAPTURE\_CLOSED**


---

# 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://legacy-docs.usesmileid.com/integration-options/mobile/ios/smile-identity-ui/presenting-screens.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.
