![]() You may be creating too many constraints: Here, depending on the answer abobe: ntentSize = You do not seem to set contentSize for the scrollView.Īnd content size must be larger than ame if you want some scrolling. What is the content that you want to scroll inside scrollView ? ![]() (project/source code available if interested) I have posted a screen shot here: img.gg slash Py9T81yĪt the top of the screen shot is a stackview that lays out as expected (not in a scrollView)Īt the bottom is the stackview inside the scrollView that does not layout correctlyĪny/all guidance appreciated. constrain its top, bottom, leading and trailing values to the contentViewĪttached is a screen shot link. add a vertical UIStackView inside the ContentViewĦ. constrain contentView's width to match ScrollView's widthĥ. ![]() constrain the top, bottom, leading, and trailing of the contentView to the scroll viewĤ. add a UIView inside the scrollView label it Content Viewģ. ![]() constraining the UIScrollView to its superview (top, height, leading and width)Ģ. Instead it it squishing all the arrangedSubviews into the bounds of the scroll view.Īutolayout-wise, I'm doing the following:ġ. I'm attempting to put a (vertical) UIStackView in a UIScrollView, but it doesn't seem to want to scroll.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |