0

What I'm trying to do is have a page similar to following wireframe that all UILabels height should dynamically change based on the text:

enter image description here

I currently have a UIView inside a UIScrollView. The issue is I can't get the UIView resize properly based on the its content, for example when description is long. The sample code can be downloaded from here

If not into the mood for code, here's the constraints and how it's setup:

enter image description here

I tried to use the approach mentioned in this post

manman
  • 4,743
  • 3
  • 30
  • 42

1 Answers1

0

FINALLY, found the solution to it. Needed to remove any height constraint for UIScrollView and contentView and add a bottom constraint as shown below:

enter image description here

Updated the sample app with this change. Now the sample app works as expected.

manman
  • 4,743
  • 3
  • 30
  • 42