From 67e055878d1be6d7dd2d0915b9b50fc71d49e2d3 Mon Sep 17 00:00:00 2001 From: Matt Bruce Date: Tue, 25 Jun 2024 13:36:56 -0500 Subject: [PATCH] fixed bug in accessibilityLabel Signed-off-by: Matt Bruce --- VDS/Components/Buttons/ButtonBase.swift | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/VDS/Components/Buttons/ButtonBase.swift b/VDS/Components/Buttons/ButtonBase.swift index d7b80c8a..720fca36 100644 --- a/VDS/Components/Buttons/ButtonBase.swift +++ b/VDS/Components/Buttons/ButtonBase.swift @@ -114,6 +114,11 @@ open class ButtonBase: UIButton, ViewProtocol, UserInfoable, Clickable { titleLabel?.adjustsFontSizeToFitWidth = false titleLabel?.lineBreakMode = .byTruncatingTail titleLabel?.numberOfLines = 1 + + bridge_accessibilityLabelBlock = { [weak self] in + guard let self else { return nil } + return text + } } open func updateView() {