I'm setting up an iOS app interface from the Interface Builder. I've several horizontal stack views, all embedded in a single vertical stackview. Up to here, the layout seems to be ok and the constraints are well done.
When I embed the vertical stack view in a UIScrollView, the layout turns very bad. There's probably something wrong with my layout constraints, but I do not really know what. Here are two images that represent the layout before and after the embed in the UIScrollView:
Does anyone have an idea of why this happens? Thanks in advance guys.
Update
After installing this constraint:
VerticalStackView.width == ScrollView.width
The result is the following:
Update 2