# Configurations

The camera feature is customizable and allows configuring the activity texts and colors.

The configurations can be defined as exemplified below:

```swift
let texts = CameraTexts(outOfFocus: "Out of focus", infoMessage: "More info. here", infoButton: "OK")
let style = CameraStyles(focusTextColor: .white)
let side = PhotoSide.front
let enableInactive = InactiveOptions(active: true, timer: 60)
let options = CameraOptions(i18n: texts, style: style, side: side, enableInactive: enableInactive)
```

For more information about each possible configuration see the corresponding data model below:

### Models

<table><thead><tr><th width="336">CameraOptions</th><th>Description</th></tr></thead><tbody><tr><td>i18n: <strong>CameraTexts?</strong></td><td>Defines the texts used for the camera preview.</td></tr><tr><td>style: <strong>CameraStyles?</strong></td><td>Defines the styles of the camera preview.</td></tr><tr><td>side: <strong>PhotoSide?</strong></td><td>Defines which side of the camera to open</td></tr><tr><td>enableInactive: <strong>InactiveOptions?</strong></td><td>Defines the configurations for inactivity popup.<br><br><strong>Defaults to true and 30 (seconds).</strong></td></tr></tbody></table>

***

<table><thead><tr><th width="376">CameraStyles</th><th>Description</th></tr></thead><tbody><tr><td>focusTextColor: <strong>UIColor?</strong></td><td>Defines the color of the text shown when the image is out of focus.</td></tr><tr><td>focusBackgroundColor: <strong>UIColor?</strong></td><td>Defines the color of the background shown behind the text, when the image is out of focus.</td></tr><tr><td>infoButtonColor: <strong>UIColor?</strong></td><td>Defines color of the more information button.</td></tr></tbody></table>

***

| CameraTexts              | Description                                                              |
| ------------------------ | ------------------------------------------------------------------------ |
| outOfFocus: **String?**  | Defines the text shown when the image is out of focus.                   |
| infoMessage: **String?** | Defines the text shown inside the more information dialog.               |
| infoButton: **String?**  | Defines the text of the close button inside the more information dialog. |
