I'm trying to create layout like this in interface builder.
I'm using constraints to make these views stretchable. Top view has left, right and top space bound to superview, and bottom space to bottom view. Bottom view has the left right and bottom space bound to superview.
On runtime I add ViewController views to both of them.
Issue here is that there is no constraint for Y of bottom view, IB shows red error arrow and so on. That is because I don't know exact height of it. Is there any "android wrap_content" constraint for yellow view to be with height which is equal to it's inner view added in runtime?
Just add height constraint to yellow view, for example: