I have 2 labels that I want to add to my View, but after setting constraints they collide and I can't fix it.
CodePudding user response:
You need to tell iOS what to do between the labels. You have told it where to position the labels in the view but you haven't told it how to handle the space between them.
Add a constraint in between the two labels (from trailing of one <-> to leading of the other)
And tell it what minimum space to have there.
Or, alternatively, use StackViews and it will make your life easier.