11
Trailing(Leading) constraint is missing, which may cause overlapping with other views

My storyboard: (just put 2 labels and their constraints)

storyboard

enter image description here

What is the best way to avoid these warnings?

ITO Yosei
  • 949
  • 2
  • 8
  • 21
  • you are providing few constraints which are not needed or missing, and even if you want them they require more attention, so click on these warning at it will show you fix option, check what it does? else try applying proper constraints. – Tushar Sharma Oct 04 '17 at 05:00

1 Answers1

21
  • Give Trailing to Hello, Label with World! label like below image give Constant 8 (What minimum gap you need) to Trailing constraint and change Relation to Grater than or Equal.

enter image description here

iVarun
  • 6,496
  • 2
  • 26
  • 34