Added Equatable to BackgroundColor

This commit is contained in:
Krishna Kishore Bandaru 2024-02-20 20:59:12 +05:30
parent 0d1d121d58
commit 97a110381a

View File

@ -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.