How to get the status bar height in iOS 13? : <p>In iOS 13 <code>UIApplication.shared.statusBarFrame.height</code> warns</p>

<blockquote>
  <p>'statusBarFrame' was deprecated in iOS 13.0: Use the statusBarManager
  property of the window scene instead.</p>
</blockquote>

<p>How do you get the status bar height without using a deprecated API in iOS 13?</p>
