Swift missing constraints

Viewed 48

I have stacked a view has a stack of labels and a TableView in single stack view (as shown in the picture below), however it's giving me a constraints for the x and y position of the two views inside the main stack view. I tried adding constraints for both views but it didn't work.

Stack View Constraints error

2 Answers

It seems like you don't have constraints for the stack view itself.

You could click this blue icon to see your layout constraints(you should check both Horizon and Vertical). enter image description here

Also, if your constraint has problems, you can see there is a red arrow, click it to see the error message. enter image description here

Related