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.
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:
Although if I toggle the in-call status bar before I open the application and then run it, the layout goes all weird:
Along with toggling the status bar to 'off', it then goes even weirder (20px of white space at the top):
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:
webView.autoresizingMask = [UIViewAutoresizing.FlexibleWidth, UIViewAutoresizing.FlexibleHeight]
How can I get my webview to accomodate for this, even when the application is open while a call is activated?


