Customization

You can customize the AuthenteqFlow appearance with a custom color scheme by instantiate a newAuthenteqFlowTheme class.

Example

Swift
Objective-C
Swift
let theme = AuthenteqFlowTheme(
primaryColor: UIColor.red,
textColor: UIColor.black,
screenBackgroundColor: UIColor.white,
viewBackgroundHightlightColor: UIColor.lightGray,
separatorColor: UIColor.gray,
font: UIFont(name: "Roboto-Regular", size: 16)!,
boldFont: UIFont(name: "Roboto-Bold", size: 16)!,
identificationInstructionImageForSelfie: nil,
identificationInstructionImageForPassport: nil,
identificationInstructionImageForDriverLicense: nil,
identificationInstructionImageForIdCard: nil
)
AuthenteqFlow.instance.theme = theme
Objective-C
AuthenteqFlowTheme *theme
= [[AuthenteqFlowTheme alloc]
initWithPrimaryColor: [UIColor redColor]
textColor: [UIColor blackColor]
screenBackgroundColor: [UIColor whiteColor]
viewBackgroundHightlightColor: [UIColor lightGray]
separatorColor: [UIColor gray]
font: [UIFont fontWithName:@"Roboto-Regular" size:16]
boldFont: [UIFont fontWithName:@"Roboto-Bold" size:16]
identificationInstructionImageForSelfie: nil
identificationInstructionImageForPassport: nil
identificationInstructionImageForDriverLicense: nil
identificationInstructionImageForIdCard:nil
];
[[AuthenteqFlow instance] setTheme:theme];

Description

Property name

Type

Description

primaryColor

UIColor

Main color of your scheme

textColor

UIColor

Text color

screenBackgroundColor

UIColor

Background color for all screens

viewBackgroundHighlightColor

UIColor

Color for some highlighted area in screen background

separatorColor

UIColor

Color for table view cells separator

font

UIFont

Font for text

boldFont

UIFont

Font for bold text

identificationInstructionImageForSelfie

UIImage

Custom image for Selfie Authentication instructions. We recommend using images smaller than 300dp

identificationInstructionImageForPassport

UIImage

Custom image for passport scan instructions. We recommend using images smaller than 300dp

identificationInstructionImageForDriverLicense

UIImage

Custom image for driver's license scan instructions. We recommend using images smaller than 300dp

identificationInstructionImageForIdCard

UIImage

Custom image for ID card scan instructions. We recommend using images smaller than 300dp