Esqarrouth/EZSwiftExtensions

Change all M_PI to CGFloat.pi for Swift 3.0

Closed this issue · 1 comments

For old versions of Swift, you use M_PI to refer to the pi constant. Swift 3 integrates the pi constant in the Float, Double and CGFloat types:

Float.pi
Double.pi
CGFloat.pi

Thanks 👍