Reputation: 541
I have a UIView
that has a height of 40. But I have a UILabel
inside of that that could be one line or multiple. How do I make the UIView
resize depending on that? I am open to doing this in Swift if I need to but if there is a way in Interface Builder that would be better.
Upvotes: 0
Views: 90
Reputation: 2413
Add flexible height for your container view ( add height constraint and change it to be Greater then or equal)
Now, if you set long test - it will automatically extend container view :
Upvotes: 2