added token to enum
Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
parent
e8f225cdc3
commit
a2a06f3870
@ -69,6 +69,7 @@ open class TileContainerBase<PaddingType: DefaultValuing>: Control where Padding
|
|||||||
case secondary
|
case secondary
|
||||||
case white
|
case white
|
||||||
case black
|
case black
|
||||||
|
case token(UIColor.VDSColor)
|
||||||
case custom(UIColor)
|
case custom(UIColor)
|
||||||
|
|
||||||
private var reflectedValue: String { String(reflecting: self) }
|
private var reflectedValue: String { String(reflecting: self) }
|
||||||
@ -484,6 +485,8 @@ extension TileContainerBase {
|
|||||||
return whiteColorConfig.getColor(object.surface)
|
return whiteColorConfig.getColor(object.surface)
|
||||||
case .black:
|
case .black:
|
||||||
return blackColorConfig.getColor(object.surface)
|
return blackColorConfig.getColor(object.surface)
|
||||||
|
case .token(let vdsColor):
|
||||||
|
return vdsColor.uiColor
|
||||||
case .custom(let color):
|
case .custom(let color):
|
||||||
return color
|
return color
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user