Status Bar is pushing down view content, only when app is launched with In-call status bar activated
<p>So I have some weird behaviour here. I have a basic iOS app coded in Swift. It's using a WKWebView along with a few other small features.</p>

<p>One major problem at the moment is the 'In-call Status Bar'. If I toggle the in-call status bar while the application is open, it looks perfectly fine:</p>

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

<hr>

<p>Although if I toggle the in-call status bar before I open the application and then run it, the layout goes all weird:</p>

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

<hr>

<p>Along with toggling the status bar to 'off', it then goes even weirder (20px of white space at the top):</p>

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

<hr>

<p>The issue was happening even when the in-call status bar was toggled while the application was open, although I fixed this (hence the first image looking fine) with this simple one-liner:</p>

<pre><code>webView.autoresizingMask = [UIViewAutoresizing.FlexibleWidth, UIViewAutoresizing.FlexibleHeight]
</code></pre>

<p>How can I get my webview to accomodate for this, even when the application is open while a call is activated?</p>