fixed constraints
Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
parent
383eee527b
commit
4a93c882e6
@ -276,8 +276,12 @@ open class BadgeIndicator: View {
|
||||
widthConstraint = badgeView.widthGreaterThanEqualTo(constant: badgeSize)
|
||||
|
||||
//we are insetting the padding to compensate for the border
|
||||
badgeView.pinToSuperView(.init(top: borderWidth, left: borderWidth, bottom: borderWidth, right: borderWidth))
|
||||
|
||||
badgeView
|
||||
.pinTop(borderWidth)
|
||||
.pinLeading(borderWidth)
|
||||
.pinTrailing(borderWidth, .defaultHigh)
|
||||
.pinBottom(borderWidth, .defaultHigh)
|
||||
|
||||
labelContraints.topConstraint = label.pinTopGreaterThanOrEqualTo(anchor: badgeView.topAnchor)
|
||||
labelContraints.bottomConstraint = label.pinBottomGreaterThanOrEqualTo(anchor: badgeView.bottomAnchor)
|
||||
labelContraints.leadingConstraint = label.pinLeadingGreaterThanOrEqualTo(anchor: badgeView.leadingAnchor)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user