title: Swift KVO - Observing enum properties
body: <p>I'm assembling a class which has several states, as defined by an enum, and a read-only property "state" which returns the instance's current state.  I was hoping to use KVO techniques to observe changes in state but this doesn't seem possible:</p>
  
  <p><code>dynamic var state:ItemState  // Generates compile-time error: Property cannot be marked dynamic because its type cannot be represented in Objective-C</code>  </p>
  
  <p>I guess I could represent each state as an Int or String, etc. but is there a simple alternative workaround that would preserve the type safety that the enum would otherwise provide?</p>
  
  <p>Vince.</p>