# Customizing iOS SDK Interface

To customize the Oz Liveness interface, use `OZCustomization` as shown below. For the description of customization parameters, please refer to [iOS SDK Methods and Properties](https://doc.ozforensics.com/oz-knowledge/guides/developer-guide/sdk/oz-mobile-sdk/ios/pages/BVX89LL3HSWuDVvGUadK#h.eocz154uib0s).

{% hint style="warning" %}
Please note: the customization methods should be called before the video capturing ones.
{% endhint %}

<pre class="language-swift"><code class="lang-swift">// customization parameters for the toolbar
let toolbarCustomization = ToolbarCustomization(
   closeButtonIcon: UIImage(named: "example"),
   closeButtonColor: .black.withAlphaComponent(0.8),
   titleText: "",
   titleFont: .systemFont(ofSize: 18, weight: .regular),
   titleColor: .gray,
   backgroundColor: .lightGray)

// customization parameters for the center hint
let centerHintCustomization = CenterHintCustomization(
   textColor: .white,
   textFont: .systemFont(ofSize: 22, weight: .regular),
   verticalPosition: 42,
   backgroundColor: UIColor.init(hexRGBA: "1C1C1E8F")!,
   hideTextBackground: false,
   backgroundCornerRadius: 14)
   
<strong>// customization parameters for the center hint animation
</strong><strong>let hintAnimationCustomization = HintAnimationCustomization(
</strong>   hideAnimation: false,
   animationIconSize: 80,
   toFrameGradientColor: UIColor.red)

// customization parameters for the frame around the user face
let faceFrameCustomization = FaceFrameCustomization(
   strokeWidth: 4,
   strokeFaceAlignedColor: .green,
   strokeFaceNotAlignedColor: .red,
   geometryType: .rect(cornerRadius: 10),
   strokePadding: 3)

// customization parameters for the SDK version text
let versionCustomization = VersionLabelCustomization(
   textFont: .systemFont(ofSize: 12, weight: .regular),
   textColor: .gray
)

// customization parameters for the background outside the frame
let backgroundCustomization = BackgroundCustomization(
   backgroundColor: .lightGray
)

// customization parameters for the antiscam protection text
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")!)

// customization parameters for your logo
// should be allowed by license
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)

</code></pre>


---

# Agent Instructions: 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:

```
GET https://doc.ozforensics.com/oz-knowledge/guides/developer-guide/sdk/oz-mobile-sdk/ios/customizing-ios-sdk-interface.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
