title: iOS: How can Objective C code read static variables in Swift?
body: <p>For Example, say if I have a class like so with a static variable pi.</p>
  
  <pre><code>let pi: Double = 3.1415926
  
   class MyClass {
  // ...
   }
  </code></pre>
  
  <p>How can I allow Objective C code to use the static variable pi?
  The projectName-Swift.h class will have auto generated code like so (just a small example and not 100 percent accurate).</p>
  
  <pre><code>  SWIFT_CLASS("_MyClass")
   @interface MyClass : NSObject
   - (instancetype)init OBJC_DESIGNATED_INITIALIZER;
   @end
  </code></pre>
  
  <p>So pi isn't being added to projectName-Swift.h. This is a small example on what is going on with my project and perhaps it should generate the static variable and I am missing something. Any tips or suggestions to fix this or make this work will be appreciated.  </p>