So I created this scenario in order to understand how views increase in height according to their content. However am still not able to make it happen.

This is what I have now:

the textview is growing according to content. however the uiview containing it is disappearing. what constraints should I use so that when the uitextview becomes bigger, its parent view also increase in height?