Realm List Filter Swift
<pre><code>var numbersDetail = List is type of ContactDetail()
let predicate = NSPredicate(format: ContactDetail.NUMBER + " = %@", formattedNumber!)
let realmContactDetail = numbersDetail.filter(predicate).first
</code></pre>

<p>Fetching ERROR : </p>

<blockquote>
  <p>throw RLMException("This method may only be called on RLMArray
  instances retrieved from an RLMRealm");</p>
</blockquote>