Feeling stupid right now just spend an hour writing down my solution to setup a UIScrollView with content having dynamic content height.

My solution used multiple subclasses and set height constraints manually. The right answer: use the content hugging policy on the child view.

Comments

How to respond

Write your comment on your on page and link it to this page with the following link:
https://vmac.ch/posts/2021-01-10-feeling-stupid-right-now-just-1610276324/
Then insert the permalink to your post into the form below and submit it.

Alternatively you can reach me by email to: comment@vmac.ch