In a mixed ObjC + Swift app I have:
CommonStuff.swift
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
Gerriet.
In a mixed ObjC + Swift app I have:
CommonStuff.swift
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
Gerriet.
You can't. You have to define such constants in ObjC.