updated logic for statusIcon label
Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
parent
0ec165701b
commit
0981bf7729
@ -344,6 +344,11 @@ open class EntryFieldBase: Control, Changeable, FormFieldInternalValidatable {
|
|||||||
guard let self else { return "" }
|
guard let self else { return "" }
|
||||||
return value
|
return value
|
||||||
}
|
}
|
||||||
|
|
||||||
|
statusIcon.bridge_accessibilityLabelBlock = { [weak self] in
|
||||||
|
guard let self else { return "" }
|
||||||
|
return showError || hasInternalError ? "error" : nil
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Updates the UI
|
/// Updates the UI
|
||||||
|
|||||||
@ -223,6 +223,16 @@ open class InputField: EntryFieldBase {
|
|||||||
return accessibilityLabels.joined(separator: ", ")
|
return accessibilityLabels.joined(separator: ", ")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
statusIcon.bridge_accessibilityLabelBlock = { [weak self] in
|
||||||
|
guard let self else { return "" }
|
||||||
|
if showError {
|
||||||
|
return "error"
|
||||||
|
} else if showSuccess {
|
||||||
|
return "success"
|
||||||
|
} else {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
open override func getFieldContainer() -> UIView {
|
open override func getFieldContainer() -> UIView {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user