fixed titlelet

Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
Matt Bruce 2024-06-05 13:09:04 -05:00
parent fdd6360f31
commit 3eda3bd68e
2 changed files with 7 additions and 3 deletions

View File

@ -540,7 +540,9 @@ open class Tilelet: TileContainerBase<Tilelet.Padding> {
var showIconContainerView = false
if let descriptiveIconModel {
descriptiveIcon.name = descriptiveIconModel.name
descriptiveIcon.color = descriptiveIconModel.iconColor.uiColor ?? VDSColor.paletteBlack
if let color = descriptiveIconModel.iconColor?.uiColor {
descriptiveIcon.color = color
}
descriptiveIcon.size = descriptiveIconModel.size
descriptiveIcon.surface = backgroundColorSurface
showIconContainerView = true
@ -548,7 +550,9 @@ open class Tilelet: TileContainerBase<Tilelet.Padding> {
if let directionalIconModel {
directionalIcon.name = directionalIconModel.iconType.iconName
directionalIcon.color = directionalIconModel.iconColor.uiColor ?? VDSColor.paletteBlack
if let color = directionalIconModel.iconColor?.uiColor {
directionalIcon.color = color
}
directionalIcon.size = directionalIconModel.size.value
directionalIcon.surface = backgroundColorSurface
showIconContainerView = true

View File

@ -24,7 +24,7 @@ extension Tilelet {
public var uiColor: UIColor {
switch self {
case .token(let color):
return color
return color.uiColor
case .custom(let color):
return color
}