O'Reilly logo
  • Luis Ferro thinks this is interesting:

override func supportedInterfaceOrientations() -> UIInterfaceOrientationMask {
        return UIInterfaceOrientationMask(rawValue:
            (UIInterfaceOrientationMask.portrait.rawValue
                | UIInterfaceOrientationMask.landscapeLeft.rawValue))
    }

From

Cover of Beginning iPhone Development with Swift 3: Exploring the iOS SDK, Third Edition

Note

This doesn't work anymore in swift 3.