if UIDeviceOrientationIsLandscape(UIDevice.currentDevice().orientation) { print(\"landscape\") } if UIDeviceOrientationIsPortrait(UIDevice.currentDev
UIDeviceOrientation will return a value for that:
enum UIDeviceOrientation : Int { case Unknown case Portrait case PortraitUpsideDown case LandscapeLeft case LandscapeRight case FaceUp case FaceDown }