skip to Main Content

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


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

    Login or Signup to reply.
  2. 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

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search