I built a test project to show what the goal is compared to what I'm doing right now. The gif on the left shows that I want the final look. It is built with a single traditional hierarchy of views. I need to achieve this, with a pink view inline / containing view . My attempts so far have led me to the gif on the right.
How the pink image grows is perhaps an important detail: the blue subtask changes its height, and the whole device gets a new own size of its own due to all the associated vertical restrictions. As you would expect, this is a simplification of my actual application, but I think it has all the important bits.

The main things that I see are strange:
- / "" .
- , , , :

gif. "" , "" translatesAutoresizingMaskIntoConstraints false .

: ** , (), ? **
:
, Containment View Controller Containment, , Storyboard, . , , , .
: Bounty
100 , . github repo. !