title: How to create enum with raw type of CGPoint?
body: <p>Inspired from <a href="https://stackoverflow.com/questions/24160175/how-to-declare-a-typedef-enum-of-structs-in-objective-c-if-possible?noredirect=1#comment37286773_24160175">this question</a>. Swift support to create enum with any raw type, so it will be nice to able to create enum with raw type of CGPoint.</p>
  
  <p>But this code won't compile</p>
  
  <pre><code>enum MyEnum : CGPoint {
      case Zero
  }
  </code></pre>
  
  <p>with following error</p>
  
  <pre><code>&lt;REPL&gt;:50:15: error: raw type 'CGPoint' is not convertible from any literal
  enum MyEnum : CGPoint {
                ^
  &lt;REPL&gt;:51:10: error: enum cases require explicit raw values when the raw type is not integer literal convertible
      case Zero
       ^
  </code></pre>
  
  <p>So how to declare enum with raw type of CGPoint?</p>