added super method calls in overrides
Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
parent
dec1a00bb5
commit
1e8027d2ec
@ -186,13 +186,13 @@ open class SelectorItemBase<Selector: SelectorControlable>: Control, Errorable,
|
||||
|
||||
/// Function used to make changes to the View based off a change events or from local properties.
|
||||
open override func updateView() {
|
||||
super.updateView()
|
||||
updateLabels()
|
||||
selectorView.showError = showError
|
||||
selectorView.isSelected = isSelected
|
||||
selectorView.isHighlighted = isHighlighted
|
||||
selectorView.disabled = disabled
|
||||
selectorView.surface = surface
|
||||
updateAccessibility()
|
||||
}
|
||||
|
||||
open override func updateAccessibility() {
|
||||
|
||||
@ -133,6 +133,8 @@ open class Badge: View {
|
||||
|
||||
/// Function used to make changes to the View based off a change events or from local properties.
|
||||
open override func updateView() {
|
||||
super.updateView()
|
||||
|
||||
updateTextColorConfig()
|
||||
|
||||
backgroundColor = backgroundColorConfiguration.getColor(self)
|
||||
|
||||
@ -312,6 +312,8 @@ open class BadgeIndicator: View {
|
||||
|
||||
/// Function used to make changes to the View based off a change events or from local properties.
|
||||
open override func updateView() {
|
||||
super.updateView()
|
||||
|
||||
updateTextColorConfig()
|
||||
|
||||
badgeView.backgroundColor = backgroundColorConfiguration.getColor(self)
|
||||
|
||||
@ -152,6 +152,7 @@ open class Button: ButtonBase, Useable {
|
||||
/// Function used to make changes to the View based off a change events or from local properties.
|
||||
open override func updateView() {
|
||||
super.updateView()
|
||||
|
||||
let bgColor = backgroundColorConfiguration.getColor(self)
|
||||
let borderColor = borderColorConfiguration.getColor(self)
|
||||
let borderWidth = use == .secondary ? VDSFormControls.widthBorder : 0.0
|
||||
|
||||
@ -58,6 +58,8 @@ open class Line: View {
|
||||
|
||||
/// Function used to make changes to the View based off a change events or from local properties.
|
||||
open override func updateView() {
|
||||
super.updateView()
|
||||
|
||||
lineView.backgroundColor = lineViewColorConfiguration.getColor(self)
|
||||
}
|
||||
}
|
||||
|
||||
@ -266,6 +266,8 @@ open class Notification: View {
|
||||
|
||||
/// Function used to make changes to the View based off a change events or from local properties.
|
||||
open override func updateView() {
|
||||
super.updateView()
|
||||
|
||||
backgroundColor = backgroundColorConfiguration.getColor(self)
|
||||
updateIcons()
|
||||
updateLabels()
|
||||
|
||||
@ -261,8 +261,9 @@ open class RadioBoxItem: Control, Changeable {
|
||||
|
||||
/// Function used to make changes to the View based off a change events or from local properties.
|
||||
open override func updateView() {
|
||||
super.updateView()
|
||||
|
||||
updateLabels()
|
||||
updateAccessibility()
|
||||
setNeedsLayout()
|
||||
layoutIfNeeded()
|
||||
}
|
||||
|
||||
@ -127,10 +127,14 @@ open class RadioSwatch: Control {
|
||||
|
||||
/// Function used to make changes to the View based off a change events or from local properties.
|
||||
open override func updateView() {
|
||||
super.updateView()
|
||||
|
||||
layer.setNeedsDisplay()
|
||||
}
|
||||
|
||||
public override func updateAccessibility() {
|
||||
super.updateAccessibility()
|
||||
|
||||
accessibilityLabel = text
|
||||
}
|
||||
|
||||
|
||||
@ -126,6 +126,8 @@ open class RadioSwatchGroup: SelectorGroupSelectedHandlerBase<RadioSwatch>, UICo
|
||||
|
||||
/// Function used to make changes to the View based off a change events or from local properties.
|
||||
open override func updateView() {
|
||||
super.updateView()
|
||||
|
||||
label.textPosition = .left
|
||||
label.textStyle = .bodySmall
|
||||
label.text = selectedHandler?.text ?? " "
|
||||
|
||||
@ -260,6 +260,7 @@ open class EntryField: Control, Changeable {
|
||||
|
||||
/// Function used to make changes to the View based off a change events or from local properties.
|
||||
open override func updateView() {
|
||||
super.updateView()
|
||||
|
||||
containerView.backgroundColor = backgroundColorConfiguration.getColor(self)
|
||||
containerView.layer.borderColor = borderColorConfiguration.getColor(self).cgColor
|
||||
|
||||
@ -374,10 +374,11 @@ open class Tilelet: TileContainer {
|
||||
updateIcons()
|
||||
|
||||
layoutIfNeeded()
|
||||
updateAccessibility()
|
||||
}
|
||||
|
||||
open override func updateAccessibility() {
|
||||
super.updateAccessibility()
|
||||
|
||||
setAccessibilityLabel(for: [badge.label, titleLockup.eyebrowLabel, titleLockup.titleLabel, titleLockup.subTitleLabel])
|
||||
}
|
||||
}
|
||||
|
||||
@ -193,15 +193,17 @@ open class Toggle: Control, Changeable {
|
||||
|
||||
/// Function used to make changes to the View based off a change events or from local properties.
|
||||
open override func updateView() {
|
||||
super.updateView()
|
||||
|
||||
updateLabel()
|
||||
toggleView.surface = surface
|
||||
toggleView.disabled = disabled
|
||||
toggleView.isOn = isOn
|
||||
updateAccessibility()
|
||||
}
|
||||
|
||||
open override func updateAccessibility() {
|
||||
super.updateAccessibility()
|
||||
|
||||
if showText {
|
||||
setAccessibilityLabel(for: [label])
|
||||
} else {
|
||||
|
||||
@ -154,12 +154,14 @@ open class ToggleView: Control, Changeable {
|
||||
|
||||
/// Function used to make changes to the View based off a change events or from local properties.
|
||||
open override func updateView() {
|
||||
super.updateView()
|
||||
|
||||
updateToggle()
|
||||
updateAccessibility()
|
||||
}
|
||||
|
||||
open override func updateAccessibility() {
|
||||
super.updateAccessibility()
|
||||
|
||||
accessibilityLabel = "Toggle"
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user