title: How can I store a Dictionary with RealmSwift?
body: <p>Considering the following model:</p>
  
  <pre><code>class Person: Object {
      dynamic var name = ""
      let hobbies = Dictionary&lt;String, String&gt;()
  }
  </code></pre>
  
  <p>I'm trying to stock in Realm an object of type <code>[String:String]</code> that I got from an Alamofire request but can't since <code>hobbies</code> <strong>has to</strong>  to be defined through <code>let</code> according to RealmSwift Documentation since it is a <code>List&lt;T&gt;</code>/<code>Dictionary&lt;T,U&gt;</code> kind of type.</p>
  
  <pre><code>let hobbiesToStore: [String:String]
  // populate hobbiestoStore
  let person = Person()
  person.hobbies = hobbiesToStore
  </code></pre>
  
  <p>I also tried to redefine <code>init()</code> but always ended up with a fatal error or else.</p>
  
  <p>How can I simply copy or initialize a Dictionary in RealSwift?
  Am I missing something trivial here?</p>