Reputation: 3643
I am getting a few layout issues while taking a 3-D view of the UI designed.
So this is the View where there is one Vertical StackView and within it a list of stackView. Ex-
As you can see in the above image there are 4 internal stack views and here are the constraints for all the elements within it.
Everything looks good on UI but when I take a 3-D view of above I am getting layout issues. Though I can understand giving the constant stackView height to all will fix it but as the text is dynamic I can't have a constant height.
Upvotes: 0
Views: 571
Reputation: 77690
Here is a layout that does not generate any layout warnings / ambiguities:
The stack views' properties are set as follows:
I designed one "Row Stack" in the Vertical "Outer Stack" and then just duplicated it 3 times.
Here is how it looks at run-time (labels have background colors to make it easy to see their frames):
and with the label backgrounds set to clear:
Upvotes: 1