Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Swift 3.1 Migration #50

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Swift 3.1 Migration #50

wants to merge 1 commit into from

Conversation

WesleyBuck
Copy link

No description provided.

@leogiertz
Copy link

@maxmeyers would be 🎉 if you could take a look at this and perhaps release a new version with the fix in?

@@ -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)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please update the change this way:

let radians = degrees * CGFloat.pi / -180.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants