evgenyneu / Cosmos

A star rating control for iOS/tvOS written in Swift
MIT License
2.19k stars 368 forks source link

I am receiving a warning that M_PI is deprecated in Xcode 8.3.3 #62

Closed carlosdelamora closed 7 years ago

carlosdelamora commented 7 years ago

/Users/carlosdelamora/Desktop/my apps/MonEx/Pods/Cosmos/Cosmos/CosmosLayers.swift:93:56: 'M_PI' is deprecated: Please use 'Double.pi' or '.pi' to get the value of correct type and avoid casting.

In order to change it to Double.pi as the message suggest I need to unlock cosmos code, I do not want to do this. Is there another way around it, like an update or something?

evgenyneu commented 7 years ago

Thanks for reporting. There is a separate version for Swift 4.0 / Xcode 9.0 beta. Let me know if it helps. :)

evgenyneu commented 7 years ago

Oh, sorry, I did not notice that you were using Xcode 8. The pi warning has been fixed, please update to the most recent stable version.

carlosdelamora commented 7 years ago

Thank you very much, It took me a while to update my pods because I was having issues with other dependencies. But now everything is working fine no warnings for me.

evgenyneu commented 7 years ago

No worries, all the best.