How to make Swift constants available to ObjC

In a mixed ObjC + Swift app I have:

let someKey = "my Key"

I can use someKey in all my Swift files, but not in ObjC files.
How can I avoid doing:
NSString *someKey = @"my Key"; // duplicated from CommonStuff.swift


You can't. You have to define such constants in ObjC.

Terms of Service

Privacy Policy

Cookie Policy