title: How to iterate over Results in Realm with Swift
body: <p>I am trying to iterate over Results from a Realm query in Swift 2. There are two PersonClass objects stored.</p>
  
  <p>The results var from the query is valid and contains two PersonClass objects but when iterating over results, then name property are empty strings.</p>
  
  <pre><code>class PersonClass: Object {
      var name = ""
  }
  
  let realm = try! Realm()
  
  @IBAction func button0Action(sender: AnyObject) {
    let results = realm.objects(PersonClass)
  
    print(results) //prints two PersonClass object with the name property populated
  
    for person in results {  
        let name = person.name
        print(name) //prints and empty string   
    }
  }
  </code></pre>