fixed titlelet
Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
parent
fdd6360f31
commit
3eda3bd68e
@ -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
|
||||
|
||||
@ -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
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user