I have a UIScrollView holding a ContentView, with that ContentView holding other interchangeable UIViews. Can get the multiple UIViews to show, however one of the UIViews have dynamic content, so changes its height if you click on a button, can also shrink back.
The structure looks like this - UIScrollView -> ContentView(UIView) -> UIView :
I cannot get the Autolayout anchors correct, the content size doesn't change when the UIView changes height (button click). So I can scroll to see the growth in content, but its not clickable anymore, the extra growth height is the same height as what is not clickable (the ContentView didn't change its height)
Current setup:
ScrollView: Anchored at 0 to parent view all around
ContentView: Anchored at 0 to Scroll View all around. Height and width bound to Parent View.
UIViews: Anchored at 0 to ContentView all around.
Any ideas what I can change to fix this issue?
Side note: I won't be against removing the ContentView, but couldn't get it working either way.