@@ -227,7 +227,7 @@ public class Spring : NSObject {
227
227
scaleY = 2 * force
228
228
case . Fall:
229
229
animateFrom = false
230
- rotate = 15 * CGFloat( M_PI / 180 )
230
+ rotate = 15 * CGFloat( CGFloat . pi / 180 )
231
231
y = 600 * force
232
232
case . Shake:
233
233
let animation = CAKeyframeAnimation ( )
@@ -262,7 +262,7 @@ public class Spring : NSObject {
262
262
animation. keyPath = " transform "
263
263
animation. fromValue = NSValue ( caTransform3D: CATransform3DMakeRotation ( 0 , 0 , 0 , 0 ) )
264
264
animation. toValue = NSValue ( caTransform3D:
265
- CATransform3DConcat ( perspective, CATransform3DMakeRotation ( CGFloat ( M_PI ) , 0 , 1 , 0 ) ) )
265
+ CATransform3DConcat ( perspective, CATransform3DMakeRotation ( CGFloat ( CGFloat . pi ) , 0 , 1 , 0 ) ) )
266
266
animation. duration = CFTimeInterval ( duration)
267
267
animation. beginTime = CACurrentMediaTime ( ) + CFTimeInterval( delay)
268
268
animation. timingFunction = getTimingFunction ( curve: curve)
@@ -276,7 +276,7 @@ public class Spring : NSObject {
276
276
animation. fromValue = NSValue ( caTransform3D:
277
277
CATransform3DMakeRotation ( 0 , 0 , 0 , 0 ) )
278
278
animation. toValue = NSValue ( caTransform3D:
279
- CATransform3DConcat ( perspective, CATransform3DMakeRotation ( CGFloat ( M_PI ) , 1 , 0 , 0 ) ) )
279
+ CATransform3DConcat ( perspective, CATransform3DMakeRotation ( CGFloat ( CGFloat . pi ) , 1 , 0 , 0 ) ) )
280
280
animation. duration = CFTimeInterval ( duration)
281
281
animation. beginTime = CACurrentMediaTime ( ) + CFTimeInterval( delay)
282
282
animation. timingFunction = getTimingFunction ( curve: curve)
0 commit comments