title: Detect the landscape orientation left or right
body: <p>My app supports portrait and  landscape -> Both left and right. I am able to detect if its landscape. But not able to detect left or right. Here is my code</p>
  
  <pre><code>if UIDevice.current.orientation.isLandscape {
  // Do some task 
  }
  </code></pre>
  
  <p>When user rotates the device i need to detect whether the user rotated to landscape left or landscape right !</p>
  
  <p>Same way inside my above condition I need to check whether its left or right side. How can I detect that?</p>
  
  <p>Thanks</p>