removed isVisuallyEqual since this was the same as isEqual
Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
parent
df1846c295
commit
62c1aa6a8a
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
@ -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 {
|
||||
|
||||
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user