title: Get index of enum with extension of String,
body: <p>I have an Enum that looks like this:</p>
  
  <pre><code>enum Status: String {
      case online = "online"
      case offline = "offline"
      case na = "na"
  }
  </code></pre>
  
  <p>I need the String value and I know how to get it, but my question is if it´s possible to get the index value too for each case in the enum. </p>
  
  <p>0 for online, 1 for offline and 2 for na.</p>
  
  <p>I will add more statues in the future.</p>