I\'m trying to animate a rotation of 180 degrees of a UIImageView in Swift
UIImageView
UIView.animateWithDuration(1.0, animations: { () -> Void in
Here is code to rotate imageview. swift 3.0
UIView.animate(withDuration:2.0, animations: { self.dropDownImage.transform = CGAffineTransform(rotationAngle: CGFloat(imageRotation)) })