Added Equatable to BackgroundColor
This commit is contained in:
parent
0d1d121d58
commit
97a110381a
@ -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.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user