added invalidateCOntentSize after label updates

Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
Matt Bruce 2024-03-18 16:30:29 -05:00
parent 057e48def4
commit 597753e3c0

View File

@ -146,7 +146,8 @@ open class ButtonBase: UIButton, ViewProtocol, UserInfoable, Clickable {
// MARK: - Private Methods
//--------------------------------------------------
private func updateLabel() {
defer { invalidateIntrinsicContentSize() }
//clear the arrays holding actions
accessibilityCustomActions = []
if let text, !text.isEmpty {