Swift: need a way to define global (NSString, other) variables that are also available to Obj-C

Originator:raphael
Number:rdar://17339866 Date Originated:17-Jun-2014 10:35 AM
Status:Open Resolved:
Product:Developer Tools Product Version:Xcode 6 / Swift compiler
Classification:Enhancement Reproducible:Not Applicable
 
It does not seem currently possible to define variables in Swift that are available to Obj-C code in mixed targets.

This is a very important feature as it is part of an API (think of keys for an 'options' dictionary) that a class can define, that should be available to Obj-C code.

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!