diff --git a/VDS/Components/TileContainer/TileContainer.swift b/VDS/Components/TileContainer/TileContainer.swift index 3bdb073f..6d4d515b 100644 --- a/VDS/Components/TileContainer/TileContainer.swift +++ b/VDS/Components/TileContainer/TileContainer.swift @@ -32,12 +32,19 @@ open class TileContainer: Control { // MARK: - Enums //-------------------------------------------------- /// Enum used to describe the background color choices used for this component. - public enum BackgroundColor { + public enum BackgroundColor: Equatable { + case primary case secondary case white case black case custom(String) + + private var reflectedValue: String { String(reflecting: self) } + + public static func == (lhs: Self, rhs: Self) -> Bool { + lhs.reflectedValue == rhs.reflectedValue + } } /// Enum used to describe the background effect choices used for this component.