I have a mixed Swift/Objective-C project with a category on NSLocale defining (among others):
- (NSString*)extendedLanguageCode;
I used to access this method in Swift like this:
Locale.current.extendedLanguageCode()
In Xcode 8 beta 4 this no longer works and I have to cast Locale back to NSLocale:
(Locale.current as NSLocale).extendedLanguageCode()
Is this the intended behavior? If yes, I don't like it!