I need to layout my labels like this:
If I add spaces between two labels, then they all move out:
Name three labels “left”, “centre” and “right” for understanding purpose for now.
Put all three labels inside Horizontal Stack View
Set StackView both settings to “Fill”
Now let’s fix labels
left label
right label
You can set the Distribution
property of UIStackView
to Fill Equally
on the Attributes Inspector
tab on the right side. And modify the text alignment of the leading label to leading and the trailing label to trailing.