Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions VerloopSDK/VLConfig.swift
Original file line number Diff line number Diff line change
Expand Up @@ -305,23 +305,23 @@ public typealias LiveChatUrlClickListener = (_ url : String?) -> Void
func updateClientInitInfo(response: VLClientInfoSchema?) {

if let title = response?.livechatSettings?.Header?.Title?.Heading {
self.title = title
setNavTitle(title: title)
} else {
if let title = response?.title {
self.title = title
setNavTitle(title: title)
}
}

if let textColor = response?.livechatSettings?.Theme?.ColorPalette?.Primary {
self.textColor = VerloopSDK.hexStringToUIColor(hex: textColor)
self.bgColor = UIColor.white
setNavTextColor(textColor: VerloopSDK.hexStringToUIColor(hex: textColor))
setNavBgColor(bgColor: UIColor.white)
} else {
if let textColor = response?.textColor {
self.textColor = VerloopSDK.hexStringToUIColor(hex: textColor)
setNavTextColor(textColor: VerloopSDK.hexStringToUIColor(hex: textColor))
}

if let bgColor = response?.bgColor, !bgColor.isEmpty {
self.bgColor = VerloopSDK.hexStringToUIColor(hex: bgColor)
setNavBgColor(bgColor: VerloopSDK.hexStringToUIColor(hex: bgColor))
}
}
}
Expand Down