fixed bug in accessibilityLabel

Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
Matt Bruce 2024-06-25 13:36:56 -05:00
parent 8757fe6147
commit 67e055878d

View File

@ -114,6 +114,11 @@ open class ButtonBase: UIButton, ViewProtocol, UserInfoable, Clickable {
titleLabel?.adjustsFontSizeToFitWidth = false titleLabel?.adjustsFontSizeToFitWidth = false
titleLabel?.lineBreakMode = .byTruncatingTail titleLabel?.lineBreakMode = .byTruncatingTail
titleLabel?.numberOfLines = 1 titleLabel?.numberOfLines = 1
bridge_accessibilityLabelBlock = { [weak self] in
guard let self else { return nil }
return text
}
} }
open func updateView() { open func updateView() {