pulled in protocol method

Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
Matt Bruce 2022-08-30 17:09:37 -05:00
parent 572a7dd123
commit 980642e72c

View File

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