UIView.animateWithDuration(1.0, delay: 1, usingSpringWithDamping: 1, initialSpringVelocity: 1, options: UIViewAnimationOptions.AllowUserInteraction, animations: {
var angle = degreesToRadians(180)
self.imageView.transform = CGAffineTransformMakeRotation(-angle)
}, completion: { (value: Bool) in })
Why does the above transform rotate my imageView clockwise instead of counterclockwise? How can I change this behaviour to be the latter?
Edit:
UIView.animateWithDuration(1.0, delay: 1, usingSpringWithDamping: 1, initialSpringVelocity: 1, options: UIViewAnimationOptions.AllowUserInteraction, animations: {
var angle = degreesToRadians(180)
self.imageView.transform = CGAffineTransformMakeRotation(angle)
}, completion: { (value: Bool) in })
causes the same behaviour to occur.