UI Customization

You can customize your mobile app chat widget and window's look and feel to suit your application design. The Mobilisten iOS SDK comes with native support for dark mode out of the box with the extended ability to customize every aspect of the user interfacing using the UI theme. Theming allows you to customize the Mobilisten SDK in a perfect way to match the look and feel of your app.

Theming in the Mobilisten iOS SDK is achieved using an instance of the  SIQTheme class, which can be obtained from the  ZohoSalesIQ.Theme.baseTheme get-only property. You may make modifications to this instance and set the modified theme using the  ZohoSalesIQ.Theme.setTheme(theme:)  API.

//Get baseTheme using ZohoSalesIQ.Theme.baseTheme
let customTheme = ZohoSalesIQ.Theme.baseTheme

//Customize properties in the customTheme instance as desired
customTheme.themeColor = UIColor.blue
customTheme.Navigation.backgroundColor = UIColor.white

//Set the customized theme using ZohoSalesIQ.Theme.setTheme API
ZohoSalesIQ.Theme.setTheme(theme: customTheme)

Note:
The Properties in the theme instance which have not been customized will be rendered with the default appearance in the Mobilisten SDK. This way, you can modify the properties which you would like to change and leave the other properties with default appearance.