Skip to content

Commit

Permalink
Swift 3.1 Migration
Browse files Browse the repository at this point in the history
  • Loading branch information
WesleyBuck committed Mar 29, 2017
1 parent c8838fe commit 2a054af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/RotationAnimation.swift
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public class RotationAnimation : Animation<CGFloat>, Animatable {
public func animate(_ time: CGFloat) {
if !hasKeyframes() {return}
let degrees = self[time]
let radians = degrees * CGFloat(M_PI / -180.0)
let radians = degrees * CGFloat(Double.pi / -180.0)
let rotationTransform = CGAffineTransform(rotationAngle: radians)
view.rotationTransform = rotationTransform
var newTransform = rotationTransform
Expand Down

0 comments on commit 2a054af

Please sign in to comment.