I\'m trying to animate a rotation of 180 degrees of a UIImageView in Swift
UIImageView
UIView.animateWithDuration(1.0, animations: { () -> Void in
Be sure to be in the Main thread
DispatchQueue.main.async { UIView.animateWithDuration(1.0, animations: { () -> Void in self.arrowImageView.transform = CGAffineTransformMakeRotation(CGFloat(180 * M_PI)) }) { (succeed) -> Void in } }