added token to enum

Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
Matt Bruce 2024-06-14 15:45:04 -05:00
parent e8f225cdc3
commit a2a06f3870

View File

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