diff --git a/MVMCoreUI/Atomic/Atoms/FormFields/DatePickerEntryFieldModel.swift b/MVMCoreUI/Atomic/Atoms/FormFields/DatePickerEntryFieldModel.swift index 8cd54f43..17d89666 100644 --- a/MVMCoreUI/Atomic/Atoms/FormFields/DatePickerEntryFieldModel.swift +++ b/MVMCoreUI/Atomic/Atoms/FormFields/DatePickerEntryFieldModel.swift @@ -105,4 +105,30 @@ open class DatePickerEntryFieldModel: FormFieldModel { try container.encode(transparentBackground, forKey: .transparentBackground) 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 dateFormat == model.dateFormat + && selectedDate == model.selectedDate + && calendar == model.calendar + && title == model.title + && feedback == model.feedback + && feedbackTextPlacement == model.feedbackTextPlacement + && 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 dateFormat == model.dateFormat + && selectedDate == model.selectedDate + && calendar == model.calendar + && title == model.title + && feedback == model.feedback + && feedbackTextPlacement == model.feedbackTextPlacement + && tooltip == model.tooltip + && transparentBackground == model.transparentBackground + && width == model.width + } }