refactored color

Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
Matt Bruce 2024-05-06 19:11:50 -05:00
parent b92bb553b1
commit fbd188cae8

View File

@ -69,7 +69,7 @@ open class TileContainerBase<PaddingType: DefaultValuing>: Control where Padding
case secondary
case white
case black
case custom(String)
case custom(UIColor)
private var reflectedValue: String { String(reflecting: self) }
@ -471,8 +471,8 @@ extension TileContainerBase {
return whiteColorConfig.getColor(object.surface)
case .black:
return blackColorConfig.getColor(object.surface)
case .custom(let hexCode):
return UIColor(hexString: hexCode)
case .custom(let color):
return color
}
}
}