Digital PCT265 story PCT-135: Code review. Missing properties in TitleLockup equality check.
This commit is contained in:
parent
5660a3273f
commit
79972fc262
@ -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)
|
||||
}
|
||||
|
||||
//--------------------------------------------------
|
||||
|
||||
Loading…
Reference in New Issue
Block a user