Swift @objc(<#name#>) doesn't allow Objective-C namespace change

Originator:phillips1988
Number:rdar://18941218 Date Originated:11 November 2014
Status:Open Resolved:
Product:Developer Tools Product Version:
Classification: Reproducible:Always
 
Summary:
In Swift if I annotate a class named Something with @objc(DJPSomething), I cannot use this name in objective-c. Objective-C only sees Something, not DJPSomething. The bridging header project-Swift.h has 

SWIFT_CLASS("DJPSomething")
@interface Something : UIView
// deleted boilerplate.
@end

Steps to Reproduce:
1. Create a swift class
2. Annotate the class with @objc() and use a name you would like to use in Objective-C instead of your Swift class name.
3. In Objecitve-C use your swift class

Expected Results:
In Objective-C I expect to be able to use my class by using the name declared in the @objc() annotation.

Actual Results:
I can only ever use the actual Swift class name in Objective-C

Version:
Xcode 6.1 (6A1052d)

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!