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 secondary
case white case white
case black case black
case custom(String) case custom(UIColor)
private var reflectedValue: String { String(reflecting: self) } private var reflectedValue: String { String(reflecting: self) }
@ -471,8 +471,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 .custom(let hexCode): case .custom(let color):
return UIColor(hexString: hexCode) return color
} }
} }
} }