the documentation says:
Global constants defined in C and Objective-C source files are automatically imported by the Swift compiler as Swift global
Nice answer by @rintaro, but another alternative simple Swift answer for constants that can be used in both Swift and Objective-C:
@objcMembers
class MyConstants: NSObject {
static let kMyConstant1 = "ConstantValue1";
static let kMyConstant2 = "ConstantValue2";
static let CARDS = ["card1", "card2"]
}
You can access this on both Swift and Objective-C by:
MyConstants.kMyConstant1 // this will return "ConstantValue1"
MyConstants.CARDS // this will return array ["card1", "card2"]