class is already equatble

Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
Matt Bruce 2022-09-15 17:20:20 -05:00
parent 48797d2003
commit a07f86efe3

View File

@ -16,28 +16,6 @@ public protocol RadioSwatchModel: Modelable, FormFieldable, DataTrackable, Acces
var strikethrough: Bool { get set }
}
public func == (lhs: any RadioSwatchModel, rhs: any RadioSwatchModel) -> Bool {
return lhs.id == rhs.id &&
lhs.selected == rhs.selected &&
lhs.fillImage == rhs.fillImage &&
lhs.primaryColor == rhs.primaryColor &&
lhs.secondaryColor == rhs.secondaryColor &&
lhs.secondaryColor == rhs.secondaryColor &&
lhs.strikethrough == rhs.strikethrough &&
lhs.inputId == rhs.inputId &&
lhs.value == rhs.value &&
lhs.surface == rhs.surface &&
lhs.disabled == rhs.disabled &&
lhs.dataAnalyticsTrack == rhs.dataAnalyticsTrack &&
lhs.dataClickStream == rhs.dataClickStream &&
lhs.accessibilityHintEnabled == rhs.accessibilityHintEnabled &&
lhs.accessibilityHintDisabled == rhs.accessibilityHintDisabled &&
lhs.accessibilityValueEnabled == rhs.accessibilityValueEnabled &&
lhs.accessibilityValueDisabled == rhs.accessibilityValueDisabled &&
lhs.accessibilityLabelEnabled == rhs.accessibilityLabelEnabled &&
lhs.accessibilityLabelDisabled == rhs.accessibilityLabelDisabled
}
public struct DefaultRadioSwatchModel: RadioSwatchModel {
public var id = UUID()
public var selected: Bool = false