fixed constraints
Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
parent
632e75c913
commit
0bc4ab88b7
@ -264,7 +264,11 @@ open class ButtonIcon: Control {
|
|||||||
layoutGuideHeightConstraint = iconLayoutGuide.height(constant: size.containerSize)
|
layoutGuideHeightConstraint = iconLayoutGuide.height(constant: size.containerSize)
|
||||||
|
|
||||||
//pin layout guide
|
//pin layout guide
|
||||||
iconLayoutGuide.pinToSuperView()
|
iconLayoutGuide
|
||||||
|
.pinTop()
|
||||||
|
.pinLeading()
|
||||||
|
.pinTrailing(0, .defaultHigh)
|
||||||
|
.pinBottom(0, .defaultHigh)
|
||||||
|
|
||||||
//determines the center point of the icon
|
//determines the center point of the icon
|
||||||
centerXConstraint = icon.centerXAnchor.constraint(equalTo: iconLayoutGuide.centerXAnchor, constant: 0)
|
centerXConstraint = icon.centerXAnchor.constraint(equalTo: iconLayoutGuide.centerXAnchor, constant: 0)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user