From fbd188cae85e89b2992cadd7391a26be2fc74ea0 Mon Sep 17 00:00:00 2001 From: Matt Bruce Date: Mon, 6 May 2024 19:11:50 -0500 Subject: [PATCH] refactored color Signed-off-by: Matt Bruce --- VDS/Components/TileContainer/TileContainer.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/VDS/Components/TileContainer/TileContainer.swift b/VDS/Components/TileContainer/TileContainer.swift index 61d7a941..000eb676 100644 --- a/VDS/Components/TileContainer/TileContainer.swift +++ b/VDS/Components/TileContainer/TileContainer.swift @@ -69,7 +69,7 @@ open class TileContainerBase: 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 } } }