Skip to content

Commit

Permalink
Merge pull request #40 from Darkkrye/master
Browse files Browse the repository at this point in the history
Updated for iOS 10.3 and new Xcode 8.3.
  • Loading branch information
Vodolazkyi authored Apr 19, 2017
2 parents 78f6cd3 + d28c9b5 commit 39f8585
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions GuillotineMenu/GuillotineMenuTransitionAnimation.swift
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ open class GuillotineTransitionAnimation: NSObject {
fileprivate var toXPresentationLandscapeAdjustment: CGFloat = 1.0
fileprivate let initialMenuRotationAngle: CGFloat = -90
fileprivate let menuElasticity: CGFloat = 0.6
fileprivate let vectorDYCoefficient: Double = 2 / Double.pi
fileprivate let menuDensity: CGFloat = 1.5
fileprivate let vectorDYCoefficient: Double = 2 / M_PI
fileprivate var topOffset: CGFloat = 0
fileprivate var anchorPoint: CGPoint!
fileprivate var menu: UIViewController!
Expand Down Expand Up @@ -345,9 +345,9 @@ extension GuillotineTransitionAnimation: UIDynamicAnimatorDelegate {
}

fileprivate func degreesToRadians(_ degrees: CGFloat) -> CGFloat {
return degrees / 180.0 * CGFloat(M_PI)
return degrees / 180.0 * CGFloat(Double.pi)
}

fileprivate func radiansToDegrees(_ radians: CGFloat) -> CGFloat {
return radians * 180.0 / CGFloat(M_PI)
return radians * 180.0 / CGFloat(Double.pi)
}

0 comments on commit 39f8585

Please sign in to comment.