I'm attempting to put a (vertical) UIStackView in a UIScrollView, but it doesn't seem to want to scroll. Instead it it squishing all the arrangedSubviews into the bounds of the scroll view.
autolayout-wise, I'm doing the following:
1. constraining the UIScrollView to its superview (top, height, leading and width)
2. add a UIView inside the scrollView label it Content View
3. constrain the top, bottom, leading, and trailing of the contentView to the scroll view
4. constrain contentView's width to match ScrollView's width
5. add a vertical UIStackView inside the ContentView
6. constrain its top, bottom, leading and trailing values to the contentView
attached is a screen shot link. I have posted a screen shot here: img.gg slash Py9T81y
At the top of the screen shot is a stackview that lays out as expected (not in a scrollView)
At the bottom is the stackview inside the scrollView that does not layout correctly
any/all guidance appreciated. (project/source code available if interested)
thanks in advance,
Mike