Center UIView vertically in scroll view when its dynamic Labels are small enough, but align it to the top once they are not : <p>I have a view with 3 dynamic labels inside it and I am trying to find a way to centre it vertically in a scroll view but when its dynamic labels are too large to fit on a page, make the text start from the top. What Xcode is doing at the moment is this:</p>

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

<p>What I am trying to do is this:</p>

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

<p>Any ideas about how to achieve this?
Thanks.</p>
