added fix for titleLockup

Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
Matt Bruce 2024-05-28 11:44:27 -05:00
parent 7760fb2738
commit 4533e3e094

View File

@ -274,6 +274,7 @@ open class TitleLockup: View {
if subTitleModel != nil {
elements.append(subTitleLabel)
}
setAccessibilityLabel(for: elements.compactMap({$0 as? UIView}))
accessibilityElements = elements.count > 0 ? elements : nil
}