[swift-dev] preprocessor and warnings for deprecated APIs...
marhab21 at gmail.com
Wed Oct 5 13:57:55 CDT 2016
I am working on porting my iOS app to iOS 10, using the new Notification
However, I still want it to work on iOS 9.*.
So, I invoke both frameworks within if blocks.
When I switch to iOS 10 deployment, I get a series of "deprecated" warnings
on the old API.
Is there a way in Swift to #ifdef the old API in case of deployment on iOS
Thank you for any help!
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the swift-dev