Breaking NSLocale API Changes Revisited
Apple have responded to my issues with broken NSLocale
property availability. The properties are actually convenience accessors which you can re-impement youself for use before iOS 10. These properties are new in iOS 10, and you could add equivalent properties for older OSes using an extension like the one shown below:
Swift 2.3 NSLocale UIKit API Changes Break iOS 8 Compatibility
We’re converting a rather big and clumsy project to Swift 2.3 at the moment. Strangely, NSLocale
gives us a lot of headaches. The API hasn’t changed visibly, but the implementation seems to have. From Objective-C’s point of view: And from Swift’s: That property certainly isn’t new. Neither are the dozen others in that header file from Foundation.