I want to create a graph like design with the help of stackviews.I have added 5 view horizotally inside a stackview.Now what i wanted to do is give a single view some height sat 25 & make property of stack view as equal width but somehow i couldn't do it.I had to give leading & trailing to the stakview & on basis of leading & trailing internal width of views was calculated.But as leading & trailing will be static for all devices. i tried to give stack view horizontal & vertical center but that did not work.
Here are my constraints
Why i had to give leading & trailing for calculating internal width of view inside a stackview.
Why i can't use vertical & horizontal center for stack view & let stack view use the width which i define for a single view?