title: How to save a struct to realm in swift?
body: <p>It is easy to use Realm with classes by inheriting from <code>Object</code>. But how would I save a <code>struct</code> containing several fields to realm in Swift? E.g.</p>
  
  <pre><code>struct DataModel {
      var id = 0
      var test = "test"
  }
  </code></pre>
  
  <p>I know the documentation is clear about supported types. But maybe there is nice workaround or - even better - someone from realm could write about future plans about structs.</p>