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,8 +16,7 @@ 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 &&
@ -38,6 +37,7 @@ public struct DefaultRadioSwatchModel: RadioSwatchModel {
lhs.accessibilityLabelDisabled == rhs.accessibilityLabelDisabled lhs.accessibilityLabelDisabled == rhs.accessibilityLabelDisabled
} }
public struct DefaultRadioSwatchModel: RadioSwatchModel {
public var selected: Bool = false public var selected: Bool = false