Digital PCT265 story PCT-135: Code review. Missing properties in TitleLockup equality check.

This commit is contained in:
Hedden, Kyle Matthew 2024-05-29 17:33:34 -04:00
parent 5660a3273f
commit 79972fc262

View File

@ -49,10 +49,13 @@ public class TitleLockupModel: ParentMoleculeModelProtocol {
public func isEqual(to model: any ModelComparisonProtocol) -> Bool {
guard let model = model as? Self else { return false }
return textAlignment == model.textAlignment
&& subTitleColor == model.subTitleColor
&& alignment == model.alignment
&& titleColor == model.titleColor
&& subTitleColor == model.subTitleColor
&& inverted == model.inverted
&& backgroundColor == model.backgroundColor
&& eyebrow.matchExistence(with: model.eyebrow)
&& subTitle.matchExistence(with: model.subTitle)
}
//--------------------------------------------------