I want stackView will be in the center scrollView. Items of stackView can be equals 2 items or 15 items.
But the elements always should be in the center.
For example, if we have only one element it locates in center screen. If we have 10 items and stackView larger than a mobile screen we can scroll ScrollView and see all elements.
my project
Look upon my screenshots, I hope it helps to understand that I try doing.


UICollectionView- JackUICollectionView, makeleadingtrailingconstraint constant ~150, ~150. then on run time if items are greater than 3, update the constraint constant with 0. - Jack