I have been trying to tackle constraints recently. I have a mildly complex view. When connecting my constraints some of my constraints turn red. Simulator still runs, but my labels and buttons are not in place. Why are constraints red?
It's indicating that there is a problem with your layout. Either your views are not properly positioned, there is an unresolvable conflict between your constraints, or some properties are ambiguous because constraints are missing.
If you look at the inner left pane there will be a little yellow or red circle with an arrow in it. If you click that, it will list all the issues for you.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With