added isEqual to TextEntry
Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
parent
961a0546a8
commit
2a497082a0
@ -218,4 +218,38 @@ import VDS
|
|||||||
try container.encode(transparentBackground, forKey: .transparentBackground)
|
try container.encode(transparentBackground, forKey: .transparentBackground)
|
||||||
try container.encodeIfPresent(width, forKey: .width)
|
try container.encodeIfPresent(width, forKey: .width)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
open override func isEqual(to model: any ModelComparisonProtocol) -> Bool {
|
||||||
|
guard super.isEqual(to: model), let model = model as? Self else { return false }
|
||||||
|
return placeholder == model.placeholder
|
||||||
|
&& textAlignment == model.textAlignment
|
||||||
|
&& enabledTextColor == model.enabledTextColor
|
||||||
|
&& disabledTextColor == model.disabledTextColor
|
||||||
|
&& keyboardOverride == model.keyboardOverride
|
||||||
|
&& type == model.type
|
||||||
|
&& clearTextOnTap == model.clearTextOnTap
|
||||||
|
&& displayFormat == model.displayFormat
|
||||||
|
&& displayMask == model.displayMask
|
||||||
|
&& enableClipboardActions == model.enableClipboardActions
|
||||||
|
&& tooltip == model.tooltip
|
||||||
|
&& transparentBackground == model.transparentBackground
|
||||||
|
&& width == model.width
|
||||||
|
}
|
||||||
|
|
||||||
|
open override func isVisuallyEquivalent(to model: any MoleculeModelComparisonProtocol) -> Bool {
|
||||||
|
guard super.isVisuallyEquivalent(to: model), let model = model as? Self else { return false }
|
||||||
|
return placeholder == model.placeholder
|
||||||
|
&& textAlignment == model.textAlignment
|
||||||
|
&& enabledTextColor == model.enabledTextColor
|
||||||
|
&& disabledTextColor == model.disabledTextColor
|
||||||
|
&& keyboardOverride == model.keyboardOverride
|
||||||
|
&& type == model.type
|
||||||
|
&& clearTextOnTap == model.clearTextOnTap
|
||||||
|
&& displayFormat == model.displayFormat
|
||||||
|
&& displayMask == model.displayMask
|
||||||
|
&& enableClipboardActions == model.enableClipboardActions
|
||||||
|
&& tooltip == model.tooltip
|
||||||
|
&& transparentBackground == model.transparentBackground
|
||||||
|
&& width == model.width
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user