title: 'statusBarOrientation' was deprecated in iOS 13.0 when attempting to get app orientation
body: <p>Simple put, I was relying on the following code to provide the orientation of the application. This is utilized for several reasons within the application:</p>
  
  <ul>
  <li>Per UX specification, the layout of the stackview is set based upon orientation for iPad (horizontal when in landscape, vertical when in portrait)</li>
  <li>Building on the previous item, the stackview is placed on the screen to the left (portrait) or on the top (landscape)</li>
  <li>There is custom rotation logic that responds differently based on the status. tl;dr is that on an iPad, the app presents itself with significant differences between orientation</li>
  </ul>
  
  <p>I am just tasked with maintenance in this scenario and do not have the ability to make significant changes that deviate from the current (and properly functioning) layout logic in place.</p>
  
  <p>As of now, it relies upon the following to capture application orientation:</p>
  
  <pre><code>var isLandscape: Bool {
      return UIApplication.shared.statusBarOrientation.isLandscape
  }
  </code></pre>
  
  <p>However, with the Xcode 11 GM version, I am given the following deprecation warning:</p>
  
  <blockquote>
    <p>'statusBarOrientation' was deprecated in iOS 13.0: Use the
    interfaceOrientation property of the window scene instead.</p>
  </blockquote>
  
  <p>How can I go about getting the orientation of the application via status bar?</p>