How to prevent UIScrollView from getting pushed down, when the scene is embedded in a NavigationController?
<p>I have a rather complex setup of custom views. A StackView inside a ScrollView etc.</p>

<p>Everything works fine until I embed my ViewController inside a NavigationController. (took me way too long to figure that out.. <em>grinch</em>)</p>

<blockquote>
  <p>How it should look like:
  <a href="https://i.stack.imgur.com/MKqi6.png" rel="nofollow"><img src="https://i.stack.imgur.com/MKqi6.png" alt="Wanted result (without NavigationController)"></a></p>
  
  <p>How it looks like with NavigationController
  <a href="https://i.stack.imgur.com/7FQ3f.png" rel="nofollow"><img src="https://i.stack.imgur.com/7FQ3f.png" alt="enter image description here"></a></p>
</blockquote>

<p>I think that this has something to do with the NavigationBar. However as I am fairly new to iOS developing I can not figure out what to change.</p>

<p>If you want to take a look, I have created a GitHub repo under:</p>

<p><a href="https://github.com/Shanakor/ScrollViewIssue" rel="nofollow">https://github.com/Shanakor/ScrollViewIssue</a></p>

<p>Thanks in advance</p>