pulled in protocol method
Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
parent
572a7dd123
commit
980642e72c
@ -16,28 +16,28 @@ public protocol RadioSwatchModel: Modelable, FormFieldable, DataTrackable, Acces
|
|||||||
var strikethrough: Bool { get set }
|
var strikethrough: Bool { get set }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public func == (lhs: any RadioSwatchModel, rhs: any RadioSwatchModel) -> Bool {
|
||||||
|
return 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 struct DefaultRadioSwatchModel: RadioSwatchModel {
|
||||||
public static func == (lhs: DefaultRadioSwatchModel, rhs: DefaultRadioSwatchModel) -> Bool {
|
|
||||||
return 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 var selected: Bool = false
|
public var selected: Bool = false
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user