ONEAPP-5109 - Typography/Label - Accessibility iOS

Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
Matt Bruce 2023-09-20 08:24:03 -05:00
parent 5c15e4e010
commit e646be1462

View File

@ -227,6 +227,11 @@ open class Label: UILabel, ViewProtocol, UserInfoable {
open func updateAccessibility() { open func updateAccessibility() {
accessibilityLabel = text accessibilityLabel = text
if isEnabled {
accessibilityTraits.remove(.notEnabled)
} else {
accessibilityTraits.insert(.notEnabled)
}
} }
//-------------------------------------------------- //--------------------------------------------------