Skip to content

Commit c0b4b63

Browse files
authored
Merge pull request raulriera#119 from JulienKode/master
[Remove M_PI] For old versions of Swift, we use M_PI. To refer to the…
2 parents 8ca40dd + e5e59b8 commit c0b4b63

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

TextFieldEffects/TextFieldEffects/YokoTextField.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ import UIKit
200200

201201
var rotationAndPerspectiveTransform = CATransform3DIdentity
202202
rotationAndPerspectiveTransform.m34 = 1.0/800
203-
let radians = ((-90) / 180.0 * CGFloat(M_PI))
203+
let radians = ((-90) / 180.0 * CGFloat.pi)
204204
rotationAndPerspectiveTransform = CATransform3DRotate(rotationAndPerspectiveTransform, radians, 1.0, 0.0, 0.0)
205205
return rotationAndPerspectiveTransform
206206
}

0 commit comments

Comments
 (0)