UI Customization
Quick links: Overview | Building the SDK | Start Liveness Verification | UI Customization | Installation | Current Version | Requirements | Source Code | Result Reference | Release Notes | FAQ
From 2.1.0, CafFaceLivenessLite accepts an optional uiCustomization parameter to match the liveness screen to your brand. Everything is optional: omit the parameter — or leave individual fields nil — and the screen keeps its default appearance.
From 3.0.0 this parameter is passed to setup rather than to startSDK.
CerttaUiCustomization
mask
CerttaMaskCustomization?
nil
Area around the face oval
appBar
CerttaAppBarCustomization?
nil
Header bar: title, logo and close button
prompt
CerttaPromptCustomization?
nil
Guidance prompt shown to the user during capture
fontName
String?
nil
Font used for both the title and the prompt text
CerttaAppBarCustomization
title
String?
no title
Title text displayed at the top of the screen
titleColor
UIColor?
.white
Color of the title text
color
UIColor?
transparent
Background color of the header bar
closeButton
UIImage?
built-in icon
Image used for the close button
closeButtonTintColor
UIColor?
.white
Tint color applied to the close button
logoIcon
UIImage?
no logo
Logo displayed next to the title
CerttaPromptCustomization
textColor
UIColor?
.white
Color of the prompt text
backgroundColor
UIColor?
translucent black
Background color of the prompt
isRounded
Bool
true
Whether the prompt is drawn with rounded corners
CerttaMaskCustomization
isBlurEnabled
Bool
true
Whether the blur and vignette effect outside the face oval is drawn
color
UIColor?
translucent black
Color applied to the area outside the face oval
Example — full customization
Example — partial customization
Customize only what you need; everything else stays at its default.
To customize the texts shown on the screen rather than its appearance, use customLocalization and customLocalizationBundle — see Start Liveness Verification.
Last updated

