I have been trying to make it so that view will transition will only return something if the device is an iphone in landscape mode using the following code: 

```
override func viewWillTransitionToSize(size: CGSize, withTransitionCoordinator coordinator: UIViewControllerTransitionCoordinator) {
 super.viewWillTransitionToSize(size, withTransitionCoordinator: coordinator)
coordinator.animateAlongsideTransition(nil, completion: {
    _ in

    return x
})
}

```

I cant see how to make this code only execute if the device is an iphone in landscape mode or is there is a different way to do it.