Tuesday, July 31, 2018

Set a spacing before the first and after the last view inside a UIStackView

We can set spacing between UIStackView's arranged subviews easily by setting the spacing for the UIStackView. But to give a padding before the first item and after the last item, the easiest way seems to be setting layout margins for the UIStackView

Wednesday, July 11, 2018

UIStackView not showing some of the subViews

When a sub view of a UIStackView doesn't have an intrinsic content size, the UIStackView might not even display it in the UI. So if your subview is missing, try applying constraints to define the position and size of the subview.