How to resolve "Type of expression in ambiguous without more context"?
<pre><code>let attributedString  =  NSAttributedString(data: encodedData, options: attributedOptions, documentAttributes: nil, error: nil)!
</code></pre>

<p>Compiler error: "Type of expression in ambiguous without more context"
How could it be solved?</p>