title: How do I get the initial status bar height?
body: <p>I tried <code>UIApplication.shared.statusBarFrame.height</code>, but when I start the app with the in-call status bar enabled I get 40 instead of 20. I printed the value in my initial post in the viewDidLoad function of the initial view controller. I have a UIView positioned directly behind the status bar acting as a 'background view' to produce a custom status bar background color. When 40 is returned and the in-call status bar has disappeared, the view is far larger than it should be.</p>