I have two similar StackViews both have trailing constraint of 8 to superview (same superview), but they look different and have different widths:
Asked
Active
Viewed 38 times
0
-
2Are 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
-
1Do both have the same alignment and distribution in the stack view configuration? – Oxthor Dec 21 '17 at 16:19
-
1Give your labels background colors to confirm their frames. Is it possible your "cost" label has trailing spaces? – DonMag Dec 21 '17 at 16:20