super
This commit is contained in:
parent
303c28009a
commit
d6f97311a1
@ -52,7 +52,6 @@ import UIKit
|
||||
|
||||
setTitle(model.title, for: .normal)
|
||||
accessibilityLabel = model.title
|
||||
accessibilityIdentifier = model.accessibilityIdentifier
|
||||
setTitleColor((model.inverted ? model.enabledColor_inverted : model.enabledColor).uiColor, for: .normal)
|
||||
setTitleColor((model.inverted ? model.disabledColor_inverted : model.disabledColor).uiColor, for: .disabled)
|
||||
isEnabled = model.enabled
|
||||
|
||||
@ -406,8 +406,6 @@ import MVMCore
|
||||
self.fieldKey = fieldKey
|
||||
}
|
||||
|
||||
accessibilityIdentifier = model.accessibilityIdentifier
|
||||
|
||||
borderColor = (model.inverted ? model.invertedColor : model.borderColor).uiColor
|
||||
borderWidth = model.borderWidth
|
||||
|
||||
|
||||
@ -87,7 +87,6 @@ import UIKit
|
||||
self.delegateObject = delegateObject
|
||||
self.additionalData = additionalData
|
||||
guard let model = model as? HeartModel else { return }
|
||||
accessibilityIdentifier = model.accessibilityIdentifier
|
||||
isSelected = model.isActive
|
||||
isEnabled = model.enabled
|
||||
updateAccessibilityLabel()
|
||||
|
||||
@ -85,7 +85,6 @@ open class RadioBox: Control, MFButtonProtocol {
|
||||
subTextLabel.text = model.subText
|
||||
isOutOfStock = model.strikethrough
|
||||
subTextLabelHeightConstraint?.isActive = (subTextLabel.text?.count ?? 0) == 0
|
||||
accessibilityIdentifier = model.accessibilityIdentifier
|
||||
if let color = model.selectedAccentColor?.uiColor {
|
||||
accentColor = color
|
||||
}
|
||||
|
||||
@ -62,7 +62,6 @@ open class RadioBoxes: View {
|
||||
FormValidator.setupValidation(for: model, delegate: delegateObject?.formHolderDelegate)
|
||||
|
||||
backgroundColor = model.backgroundColor?.uiColor
|
||||
accessibilityIdentifier = model.accessibilityIdentifier
|
||||
|
||||
registerCells()
|
||||
setHeight()
|
||||
|
||||
@ -161,8 +161,6 @@ import UIKit
|
||||
|
||||
guard let model = model as? RadioButtonModel else { return }
|
||||
|
||||
accessibilityIdentifier = model.accessibilityIdentifier
|
||||
|
||||
isSelected = model.state
|
||||
isEnabled = model.enabled
|
||||
RadioButtonSelectionHelper.setupForRadioButtonGroup(model, self, delegateObject: delegateObject)
|
||||
|
||||
@ -62,7 +62,6 @@ open class RadioSwatch: Control, MFButtonProtocol {
|
||||
guard let model = model as? RadioSwatchModel else { return }
|
||||
self.delegateObject = delegateObject
|
||||
self.additionalData = additionalData
|
||||
accessibilityIdentifier = model.accessibilityIdentifier
|
||||
bottomText.text = model.text
|
||||
isSelected = model.selected
|
||||
isEnabled = model.enabled
|
||||
|
||||
@ -58,7 +58,6 @@ open class RadioSwatches: View {
|
||||
guard let model = model as? RadioSwatchesModel else { return }
|
||||
swatches = model.swatches
|
||||
FormValidator.setupValidation(for: model, delegate: delegateObject?.formHolderDelegate)
|
||||
accessibilityIdentifier = model.accessibilityIdentifier
|
||||
collectionView.reloadData()
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user