title: How to get the name of an enumeration case by its raw value in Swift 4?
body: <h3>Using Xcode 9.4.1 and Swift 4.1</h3>
  
  <p>Having an enumeration with multiple cases from type Int, how can I print the case name by its rawValue?</p>
  
  <pre><code>public enum TestEnum : UInt16{
  case ONE    = 0x6E71
  case TWO    = 0x0002
  case THREE  = 0x0000
  }
  </code></pre>
  
  <p>I am accessing the Enum by the rawValue:</p>
  
  <pre><code>print("\nCommand Type = 0x" + String(format:"%02X", someObject.getTestEnum.rawValue))
  /*this prints: Command Type = 0x6E71
  if the given Integer value from someObject.TestEnum is 28273*/
  </code></pre>
  
  <p>Now I additionally want to print "ONE" after the HEX value.</p>
  
  <p>I am aware of the Question: <a href="https://stackoverflow.com/questions/24113126/how-to-get-the-name-of-enumeration-value-in-swift">How to get the name of enumeration value in Swift?</a>
  but this is something different because I want to determine the case name by the cases raw value instead of the enumeration value by itself.</p>
  
  <p>Desired Output:</p>
  
  <p><strong>Command Type = 0x6E71, ONE</strong></p>