added super method calls in overrides

Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
Matt Bruce 2023-08-08 09:47:57 -05:00
parent dec1a00bb5
commit 1e8027d2ec
13 changed files with 27 additions and 5 deletions

View File

@ -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() {

View File

@ -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)

View File

@ -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)

View File

@ -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

View File

@ -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)
}
}

View File

@ -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()

View File

@ -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()
}

View File

@ -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
}

View File

@ -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 ?? " "

View File

@ -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

View File

@ -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])
}
}

View File

@ -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 {

View File

@ -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"
}