How to set height of nested views in UIStackView in the right way
<p>In my app there is a viewController placed inside a NavigationController and TabBarController. a viewController has 1 stackView inside.
I've dragged 3 items inside a stackView: UILabel, MKMapView and UILabel 
MKMapView is in the middle.
I want my MKMapView to be about 0.8% of the StackView Height (so that it would stretch if the device screen is big and shorten it's height if it is small) I want my UILabels to have a fixed height of 30px.
How to implement this the right way using constraints in Main.Storyboard.</p>

<p>Which way is the most appropriate?</p>

<p>I've tried to do it the following way:</p>

<ol>
<li>I've added UIStackView and inserted UILabel, MKMapView, UILabel inside. My stackview now has (alignment: fill and distribution fill set)</li>
</ol>

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

<ol start="2">
<li>After i've added the following constraints to UIStackView</li>
</ol>

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

<ol start="3">
<li>I've changed the following properties in UIViewController because if not set, the UIStackView is hidden by TabBar and NavigationBar (maybe this can be fixed, do not know how)</li>
</ol>

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

<ol start="4">
<li>My storyboard looks the following way after setting 1-3</li>
</ol>

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

<ol start="5">
<li>Now when I want to set label1 and label2 height to 30px and when i do that i receive "frame will be different at runtime" error</li>
</ol>

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

<p>What am i doing wrong? How to do this nesting with setting the heights of nested elements right? I'm using Xcode 8 beta 5 with Swift 3.</p>