fixed bug in badge

Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
Matt Bruce 2023-08-22 16:08:42 -05:00
parent 071e627fe6
commit d3c3840ab3

View File

@ -56,7 +56,7 @@ open class Badge: View {
private func updateMaxWidth() {
maxWidthConstraint?.isActive = false
guard let maxWidth else { return }
guard let maxWidth, maxWidth > minWidth else { return }
maxWidthConstraint?.constant = maxWidth
maxWidthConstraint?.isActive = true
}