fixed bug in badge
Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
parent
071e627fe6
commit
d3c3840ab3
@ -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
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user