diff --git a/MVMCoreUI/Atomic/Atoms/FormFields/DatePickerEntryFieldModel.swift b/MVMCoreUI/Atomic/Atoms/FormFields/DatePickerEntryFieldModel.swift index 17d89666..f7f84b07 100644 --- a/MVMCoreUI/Atomic/Atoms/FormFields/DatePickerEntryFieldModel.swift +++ b/MVMCoreUI/Atomic/Atoms/FormFields/DatePickerEntryFieldModel.swift @@ -118,17 +118,4 @@ open class DatePickerEntryFieldModel: FormFieldModel { && 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 - } } diff --git a/MVMCoreUI/Atomic/Atoms/FormFields/FormFieldModel.swift b/MVMCoreUI/Atomic/Atoms/FormFields/FormFieldModel.swift index 7ac83f1d..9f5c0415 100644 --- a/MVMCoreUI/Atomic/Atoms/FormFields/FormFieldModel.swift +++ b/MVMCoreUI/Atomic/Atoms/FormFields/FormFieldModel.swift @@ -152,22 +152,6 @@ import VDS && accessibilityIdentifier == model.accessibilityIdentifier && accessibilityTraits == model.accessibilityTraits } - - open func isVisuallyEquivalent(to model: any MoleculeModelComparisonProtocol) -> Bool { - guard let model = model as? Self else { return false } - return moleculeName == model.moleculeName - && enabled == model.enabled - && showError == model.showError - && errorMessage == model.errorMessage - && readOnly == model.readOnly - && required == model.required - && inverted == model.inverted - && fieldKey == model.fieldKey - && groupName == model.groupName - && accessibilityText == model.accessibilityText - && accessibilityIdentifier == model.accessibilityIdentifier - && accessibilityTraits == model.accessibilityTraits - } } extension FormFieldModel { diff --git a/MVMCoreUI/Atomic/Atoms/FormFields/TextFields/EntryFieldModel.swift b/MVMCoreUI/Atomic/Atoms/FormFields/TextFields/EntryFieldModel.swift index 82e21f42..4ddb9a35 100644 --- a/MVMCoreUI/Atomic/Atoms/FormFields/TextFields/EntryFieldModel.swift +++ b/MVMCoreUI/Atomic/Atoms/FormFields/TextFields/EntryFieldModel.swift @@ -125,16 +125,4 @@ import Foundation && text == model.text && shouldMaskRecordedView == model.shouldMaskRecordedView } - - open override func isVisuallyEquivalent(to model: any MoleculeModelComparisonProtocol) -> Bool { - guard super.isVisuallyEquivalent(to: model), let model = model as? Self else { return false } - return selected == model.selected - && title == model.title - && feedback == model.feedback - && errorTextColor == model.errorTextColor - && locked == model.locked - && hideBorders == model.hideBorders - && text == model.text - && shouldMaskRecordedView == model.shouldMaskRecordedView - } } diff --git a/MVMCoreUI/Atomic/Atoms/Selectors/CheckboxModel.swift b/MVMCoreUI/Atomic/Atoms/Selectors/CheckboxModel.swift index ed839deb..4ae2c89e 100644 --- a/MVMCoreUI/Atomic/Atoms/Selectors/CheckboxModel.swift +++ b/MVMCoreUI/Atomic/Atoms/Selectors/CheckboxModel.swift @@ -102,10 +102,4 @@ import VDS && offAction.isEqual(to: model.offAction) && action.isEqual(to: model.action) } - - open override func isVisuallyEquivalent(to model: any MoleculeModelComparisonProtocol) -> Bool { - guard super.isVisuallyEquivalent(to: model), let model = model as? Self else { return false } - return selected == model.selected - && animated == model.animated - } } diff --git a/MVMCoreUI/Atomic/Atoms/Selectors/RadioBoxModel.swift b/MVMCoreUI/Atomic/Atoms/Selectors/RadioBoxModel.swift index ad7dad7d..5095a6ab 100644 --- a/MVMCoreUI/Atomic/Atoms/Selectors/RadioBoxModel.swift +++ b/MVMCoreUI/Atomic/Atoms/Selectors/RadioBoxModel.swift @@ -100,15 +100,5 @@ public class RadioBoxModel: FormFieldModel { && fieldValue == model.fieldValue && action.isEqual(to: model.action) } - - open override func isVisuallyEquivalent(to model: any MoleculeModelComparisonProtocol) -> Bool { - guard super.isVisuallyEquivalent(to: model), let model = model as? Self else { return false } - return text == model.text - && subText == model.subText - && subTextRight == model.subTextRight - && selected == model.selected - && strikethrough == model.strikethrough - && fieldValue == model.fieldValue - } } diff --git a/MVMCoreUI/Atomic/Atoms/Selectors/RadioButtonModel.swift b/MVMCoreUI/Atomic/Atoms/Selectors/RadioButtonModel.swift index 1d188923..63c1ff24 100644 --- a/MVMCoreUI/Atomic/Atoms/Selectors/RadioButtonModel.swift +++ b/MVMCoreUI/Atomic/Atoms/Selectors/RadioButtonModel.swift @@ -90,11 +90,4 @@ open class RadioButtonModel: FormFieldModel { && fieldValue == model.fieldValue && action.isEqual(to: model.action) } - - open override func isVisuallyEquivalent(to model: any MoleculeModelComparisonProtocol) -> Bool { - guard super.isVisuallyEquivalent(to: model), let model = model as? Self else { return false } - return state == model.state - && fieldValue == model.fieldValue - && action.isEqual(to: model.action) - } } diff --git a/MVMCoreUI/Atomic/Atoms/Selectors/ToggleModel.swift b/MVMCoreUI/Atomic/Atoms/Selectors/ToggleModel.swift index 4cb478f6..1b3e79a0 100644 --- a/MVMCoreUI/Atomic/Atoms/Selectors/ToggleModel.swift +++ b/MVMCoreUI/Atomic/Atoms/Selectors/ToggleModel.swift @@ -126,17 +126,4 @@ public class ToggleModel: FormFieldModel { && textWeight == model.textWeight && textPosition == model.textPosition } - - open override func isVisuallyEquivalent(to model: any MoleculeModelComparisonProtocol) -> Bool { - guard super.isVisuallyEquivalent(to: model), let model = model as? Self else { return false } - return selected == model.selected - && animated == model.animated - && accessibilityText == model.accessibilityText - && showText == model.showText - && onText == model.onText - && offText == model.offText - && textSize == model.textSize - && textWeight == model.textWeight - && textPosition == model.textPosition - } }