As shown in the image, we have a couple of problems in a storyboard concerning to auto layouts, we have, let's say, StackView1 and StackView2. The problem I'm currently having is that StackView 1 and StackView 2 need to resize based on the content (height >= 100 and bottom space) that's why it is in red, because StackView 1 need constraints for: Y position (same for StackView2).
We have a couple of bugs because of that, and I wanted to do it rightly. As the question above says,
- How can I avoid these constraint errors?
- or do I need to completely refactor this part of the project?
- Which options do I have in that case?
- Which is the most used approach in this case?
This is a xib I create for each "device" we have, so I don't know the height of the StackView 1

