title: Creating class for defining constants in swift
body: <p><strong>Note:</strong> I want to achieve similar functionality in swift - <a href="https://stackoverflow.com/a/12856504/217586">Where to store global constants in an iOS application?</a></p>
  
  <p>I have two classes - MasterViewController and DetailViewController</p>
  
  <p>I want to define an enum (refer below enum) and use its values in both classes:</p>
  
  <pre><code>enum Planet: Int {
      case Mercury = 1, Venus, Earth, Mars, Jupiter, Saturn, Uranus, Neptune
  }
  </code></pre>
  
  <p>I tried to define it in MasterViewController and use it in DetailViewController like this:</p>
  
  <pre><code>let aPlanet = Planet.Earth
  </code></pre>
  
  <p>but compiler is complaining :( </p>
  
  <blockquote>
    <p>"Use of unresolved identifier Planet"</p>
  </blockquote>
  
  <p>Generally in my objective c code I used to have a global constant file, which I used to import in app-prefix.pch file, which was making it accessible to all files within my project, but in this case I am clueless.</p>