The correct and easiest way is to use Stack Views.
Add your labels/views to the Stack View:
Select the Stack View and set Distribution to be Equal Spacing:
Add Spacing to nearest neighbor constraints to the Stack View and update frames:
Add Height constraints to all the labels (optional). Needed only for views that does not have Intrinsic Size). Labels for example does not need here height constrains and only need to set numberOfLines = 3 or 0 for example.