Cannot convert value of type '[NSLayoutConstraint]' error in swift 2
<p>I want to add constraint to the <code>UIImageView</code> by adding this line of code:</p>

<pre><code>addConstraint(NSLayoutConstraint.constraintsWithVisualFormat("H:|[v0]|", options: NSLayoutFormatOptions(), metrics: nil, views: ["v0": userProfileImageView]))
</code></pre>

<p>But xcode show me this error:</p>

<p><a href="https://i.stack.imgur.com/qLQjO.png" rel="noreferrer"><img src="https://i.stack.imgur.com/qLQjO.png" alt="enter image description here"></a></p>

<p>How I can fix this error?</p>