How to suppress deprecation warning in Swift code (1.2)?
private var isPortraitOrientation: Bool { return UIDevice.currentDevice().orientation == UIDeviceOrientation.Portrait }
private var isPortraitOrientation: Bool { return UIDevice.currentDevice().orientation == UIDeviceOrientation.Portrait }