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