For example, let's say if I have a class with the static variable pi.
let pi: Double = 3.1415926 class MyClass {
How can I enable Objective-C code to use the pi static variable? The projectName-Swift.h class will have automatically generated code like this (only a small example, not 100% accurate).
SWIFT_CLASS("_MyClass") @interface MyClass : NSObject - (instancetype)init OBJC_DESIGNATED_INITIALIZER; @end
So pi is not added to projectName-Swift.h. This is a small example of what is happening with my project, and maybe it should generate a static variable, and I'm missing something. Any advice or suggestions for correcting or completing this work will be appreciated.
source share