Tutorial by Examples

Here follows a example of what can be done with nested StackViews, giving the user the impression of a continuous scrolling experience using complex user interface elements or alignments.
A frequent question about StackViews inside Scrollviews comes from ambiguous with/heigh alerts on interface builder. As this answer explained, it is necessary to: Add in the UIScrollView a UIView (the contentScrollView); In this contentScrollView, set top, bottom, left and right margins to 0 Se...
The big gotcha about scrolling is to determine the offset necessary to present (for instance) a Textfield inside a StackView with is inside the ScrollView. If you try to get the position of Textfield.frame.minY can be 0, because the minY frame is only considering the distance between the element an...

Page 1 of 1