Customizing Lock’s appearance
Style customization options can be added to your Lock initialization usingwithStyle
.
Header Style Options
headerBlur
Blur effect style used. It can be any value defined inUIBlurEffectStyle
.
headerColor
Color used as the header background color. By default it has no color, just a blur.logo
Header logo image. The minimum recommended resolution is 200 pixels (width) by 200 pixels (height).headerCloseIcon
The “close” icon in the header can be altered.headerBackIcon
The “back” icon in the header can be altered.Title Style Options
hideTitle
Hide header title and show only the logo. By default this option is false.title
Title text used in the headertitleColor
Color used as the header title color.Button and Component Style Options
buttonTintColor
Color used as the primary button tint color.disabledColor
Color used as the Lock disabled component color.disabledTextColor
Color used as the Lock disabled component text color.hideButtonTitle
Hide primary button title and show only the icon. By default this option is false.primaryColor
Color used as the Lock primary color.Input Field Styles
inputTextColor
The color of input field text.inputPlaceholderTextColor
The color of the placeholder text in input fields.inputBorderColor
The color of the border of input fields.inputBorderColorError
The color of the border of input fields which have invalid values.inputBackgroundColor
The color of the background of input fields.inputIconBackgroundColor
The color of the background of input field icons.inputIconColor
The color of the input field icons.Status Bar Styles
UIStatusBarAnimation
The Lock Controller Status Bar update animation.statusBarHidden
The Lock Controller Status Bar’s visibility.UIStatusBarStyle
The Lock Controller Status Bar style.UISearchBarStyle
The Lock Search Bar style.Other Style Options
textColor
The color for the text in the body.backgroundColor
Color used as the Lock background color.backgroundImage
Image used as the Lock backgroundoauth2
Any non-db OAuth2 connection can have styles customized by mapping a connection name with anAuthStyle