> For the complete documentation index, see [llms.txt](https://doc.ozforensics.com/oz-knowledge-ru/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.ozforensics.com/oz-knowledge-ru/rukovodstva/rukovodstvo-razrabotchika/sdk/oz-mobile-sdk/ios/nastroika-ios-sdk.md).

# Настройка iOS SDK

## Настройка интерфейса

Чтобы настроить интерфейс Oz Liveness, воспользуйтесь `OZCustomization`. Полный список полей находится [здесь](https://doc.ozforensics.com/oz-knowledge-ru/rukovodstva/rukovodstvo-razrabotchika/sdk/oz-mobile-sdk/ios/pages/58ocyasEYOnj9V51ifLR#h.eocz154uib0s).

{% hint style="warning" %}
Обратите внимание: методы настройки интерфейса необходимо вызывать перед методами, запускающими съемку видео.
{% endhint %}

```swift
// параметры настройки верхней панели
let toolbarCustomization = ToolbarCustomization(
   closeButtonIcon: UIImage(named: "example"),
   closeButtonColor: .black.withAlphaComponent(0.8),
   titleText: "",
   titleFont: .systemFont(ofSize: 18, weight: .regular),
   titleColor: .gray,
   backgroundColor: .lightGray)

// параметры настройки текста подсказки
let centerHintCustomization = CenterHintCustomization(textColor: .white,
   textFont: .systemFont(ofSize: 22, weight: .regular),
   verticalPosition: 42,
   backgroundColor: UIColor.init(hexRGBA: "1C1C1E8F")!,
   hideTextBackground: false,
   backgroundCornerRadius: 14)
   
// параметры настройки анимации подсказки
let hintAnimationCustomization = HintAnimationCustomization(
   hideAnimation: false,
   animationIconSize: 80,
   toFrameGradientColor: UIColor.red)

// параметры настройки рамки вокруг лица
let faceFrameCustomization = FaceFrameCustomization(
   strokeWidth: 4,
   strokeFaceAlignedColor: .green,
   strokeFaceNotAlignedColor: .red,
   geometryType = .rect(cornerRadius: 10),
   strokePadding: 3)

// параметры настройки текста версии SDK
let versionCustomization = VersionLabelCustomization(
   textFont: .systemFont(ofSize: 13, weight: .regular),
   textColor: .gray
)

// параметры настройки фона за рамкой
let backgroundCustomization = BackgroundCustomization(
   backgroundColor: .lightGray
)

// параметры настройки защиты от мошенников
let antiscamCustomization: AntiscamCustomization = AntiscamCustomization(
   customizationEnableAntiscam: false,
   customizationAntiscamTextMessage: "Face recognition",
   customizationAntiscamTextFont: UIFont.systemFont(ofSize: 15, weight: .semibold),
   customizationAntiscamTextColor: UIColor.black,
   customizationAntiscamBackgroundColor: UIColor.init(hexRGBA: "F2F2F7FF")!,
   customizationAntiscamCornerRadius: 18,
   customizationAntiscamFlashColor: UIColor.init(hexRGBA: "FF453AFF")!)

// параметры настройки логотипа,
// если лицензия предусматривает возможность его изменения
let logoCustomization = LogoCustomization(
   image: UIImage(), 
   size: CGSize(width: 100, height: 100), 
   verticalPosition: 100, 
   horizontalPosition: 50)

OZSDK.customization = Customization(toolbarCustomization: toolbarCustomization,
   antiscamCustomization: antiscamCustomization,
   centerHintCustomization: centerHintCustomization,
   hintAnimationCustomization: hintAnimationCustomization,
   faceFrameCustomization: faceFrameCustomization,
   versionCustomization: vesrionCustomization,
   backgroundCustomization: backgroundCustomization,
   logoCustomization: logoCustomization)
```


---

# 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://doc.ozforensics.com/oz-knowledge-ru/rukovodstva/rukovodstvo-razrabotchika/sdk/oz-mobile-sdk/ios/nastroika-ios-sdk.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.
