I need to disable the animation that plays when the orientation changes. Is this possible? If not, is it possible to speed it up?
Just to clarify, i don\'t want to s
Based on Nils Munch's Answer, this is the Swift 3 version:
override func viewWillTransition(to size: CGSize, with coordinator: UIViewControllerTransitionCoordinator) {
coordinator.animate(alongsideTransition: nil) { (_) in
UIView.setAnimationsEnabled(true)
}
UIView.setAnimationsEnabled(false)
super.viewWillTransition(to: size, with: coordinator)
}