UIStackView - Distribute views evenly from the centre
I have a UIStackView ,inside a UIScrollView to show dynamically added subviews horizontally arranged. Current solution will start displaying items from the left, I would like to start distributing items from the centre without changing the width and height of the subviews. How do I do that? Im also open to solutions which doesn't use UIStackView as well. That way I could support devices < iOS9. ( Current ) ( Expected ) Short answer : ScrollView constraints Leading >= 0, Trailing >= 0, Top >= 0, Bottom >= 0 Center X and Center Y StackView constraints Leading = 0, Trailing = 0, Top = 0, Bottom =