I'm working on upgrading an app from Swift 2.0 to Swift 3.0. When arrive at the following line of code:
UIView.animate(withDuration: duration, delay: 0.0, usingSpringWithDamping: 0.9, initialSpringVelocity: 0.8, options: [], animations: {
fromView.transform = offScreenDown toView.transform = CGAffineTransformIdentity}, completion: {finished in transitionContext.completeTransition(true)})
I received the following error without any further suggestions.
'CGAffineTransformIdentity' is unavailable in Swift
Does anyone have any suggestions on how to fix this error?