title: Introspection and iteration on an Enum
body: <p>Is it possible to programatically find out how many "cases" an Enum has in Swift 2 and iterate over them?</p>
  
  <p>This code doesn't compile, but it gives yo an idea of what I'm trying to achieve:</p>
  
  <pre><code>enum HeaderStyles{
  
      case h1
      case h2
      case h3
  }
  
  for item in HeaderStyles{
      print(item)
  }
  </code></pre>