Snapping arranged views to top of UIStackView
<p>I have a Vertical UIStackView with 7 elements inside. These elements are not collectively tall enough to fill the entire view, so they get spaced based on the <code>distribution</code> value. I would like the arranged views to stack at the top of the view, with no space at the top and empty space at the bottom. I would also like to be able to control the spacing below each view as well, if possible.</p>

<p>I have tried every available distribution option, none of them accomplish what I'm trying to do. Help is appreciated!</p>

<p>Update: Adding an image of my desired result to make it easier to understand</p>

<p><a href="https://i.stack.imgur.com/O2xc2.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/O2xc2.png" alt="enter image description here"></a></p>

<ul>
<li>The views have variable heights (no problem, I have this working)</li>
<li>The views should appear in the order I add them (also working)</li>
<li>The functionality I want is this: The first view is anchored to the top of the stack view, the second view is anchored to the bottom of the first view, etc.</li>
</ul>