It looks like they represent a game controller with custom segue animation, having a player controller that only supports landscape.
Try to imagine a view controller that is implemented like this:
override func supportedInterfaceOrientations() -> Int {
return Int(UIInterfaceOrientationMask.Landscape.rawValue)
}
override func preferredInterfaceOrientationForPresentation() -> UIInterfaceOrientation {
return UIInterfaceOrientation.LandscapeLeft
}
override func shouldAutorotate() -> Bool {
return false
}
Then the device should be in the landscape. All you have left is to make an animation of the user transition between the two, and you're done.
From the docs:
preferredInterfaceOrientationForPresentation
If your view controller implements this method, your view controllers view is shown in the preferred orientation.
source
share