I tried to do the exercise with three objects. scrollview with a view inside image, a control page and a text box. nothing works, setting page is a disaster it is impossible to correctly me three object correctly.
Constraints to a scroll view work a little differently. Most constraints between subviews of the scroll view and the scroll view itself are NOT going to act against the scroll view’s frame. Instead, those constraints act on the scroll view’s content area and help define the scrollable size. But constraints between views outside the scroll view DO act on the scroll view’s frame. I hope that helps.
Something has to define the height of that view. Adding a fixed height constraint to the view will do it, but isn’t the best solution. I usually think of constraints as “top down” meaning that the top view in the hierarchy has a defined size and position and the rest of the views down the tree derive their size and position from the top. This is an example of the opposite. The container view will derive it’s height from it’s contents. But, you have to give it enough information to do that. In this case, if you have a top space constraint between the first name text field and the container, AND a bottom space constraint between the age text field and the container, AND constraints between all the text fields, the container view will know its height from those constraints.