How to check if device orientation is landscape left or right in swift? : <pre><code>    if UIDeviceOrientationIsLandscape(UIDevice.currentDevice().orientation) {
        print("landscape")
    }
    if UIDeviceOrientationIsPortrait(UIDevice.currentDevice().orientation){
        print("portrait")
    }
</code></pre>

<p>How can I check if it's landscape left or right?</p>
