File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -94,7 +94,7 @@ class KNSwitcher: UIView {
94
94
if on == true {
95
95
// Rotate animation
96
96
let rotateAnimation = CABasicAnimation ( keyPath: " transform.rotation " )
97
- rotateAnimation. fromValue = - CGFloat( M_PI )
97
+ rotateAnimation. fromValue = - CGFloat( Double . pi )
98
98
rotateAnimation. toValue = 0.0
99
99
rotateAnimation. duration = 0.45
100
100
rotateAnimation. isCumulative = false ;
@@ -124,7 +124,7 @@ class KNSwitcher: UIView {
124
124
// Rotate animation
125
125
let rotateAnimation = CABasicAnimation ( keyPath: " transform.rotation " )
126
126
rotateAnimation. fromValue = 0.0
127
- rotateAnimation. toValue = - CGFloat( M_PI )
127
+ rotateAnimation. toValue = - CGFloat( Double . pi )
128
128
rotateAnimation. duration = 0.45
129
129
rotateAnimation. isCumulative = false ;
130
130
self . button. layer. add ( rotateAnimation, forKey: " rotate " )
You can’t perform that action at this time.
0 commit comments