Skip to content

Commit 66daffc

Browse files
committed
Update code convention
1 parent 62abd17 commit 66daffc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

SwitcherExample/KNSwitcher/KNSwitcher.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ class KNSwitcher: UIView {
9494
if on == true {
9595
// Rotate animation
9696
let rotateAnimation = CABasicAnimation(keyPath: "transform.rotation")
97-
rotateAnimation.fromValue = -CGFloat(M_PI)
97+
rotateAnimation.fromValue = -CGFloat(Double.pi)
9898
rotateAnimation.toValue = 0.0
9999
rotateAnimation.duration = 0.45
100100
rotateAnimation.isCumulative = false;
@@ -124,7 +124,7 @@ class KNSwitcher: UIView {
124124
// Rotate animation
125125
let rotateAnimation = CABasicAnimation(keyPath: "transform.rotation")
126126
rotateAnimation.fromValue = 0.0
127-
rotateAnimation.toValue = -CGFloat(M_PI)
127+
rotateAnimation.toValue = -CGFloat(Double.pi)
128128
rotateAnimation.duration = 0.45
129129
rotateAnimation.isCumulative = false;
130130
self.button.layer.add(rotateAnimation, forKey: "rotate")

0 commit comments

Comments
 (0)