class Example: NSObject, UIViewControllerAnimatedTransitioning, UIViewControllerTransitioningDelegate {
var aView : UIView!
UIView.animateWithDuration(duration, delay: 0.0, usingSpringWithDamping: 0.8, initialSpringVelocity: 0.8, options: nil, animations: {
self.aView.transform = CGAffineTransformIdentity //This line is throwing the error mentioned in the Title
}, completion: { finished in
transitionContext.completeTransition(true)
})
}
This was working in earlier version of Swift but failing in version 2 not sure why