0

I have two similar StackViews both have trailing constraint of 8 to superview (same superview), but they look different and have different widths:

enter image description here

Constraints of Stack View #1 : enter image description here

Constraints of Stack View #2 : enter image description here

Eric Aya
  • 69,473
  • 35
  • 181
  • 253
AVEbrahimi
  • 17,993
  • 23
  • 107
  • 210
  • 2
    Are your stack views constrained relative to your root view's margin? Double click on stack view 2's trailing constraint and make sure that "constrains relative to margin" matches your other stack view's "constrains relative to margin" – beyowulf Dec 21 '17 at 15:54
  • 1
    Do both have the same alignment and distribution in the stack view configuration? – Oxthor Dec 21 '17 at 16:19
  • 1
    Give your labels background colors to confirm their frames. Is it possible your "cost" label has trailing spaces? – DonMag Dec 21 '17 at 16:20

0 Answers0