"used struct type value where scalar is required" at .layer.position
<p>I want to make a selection before apply one of two animations, 
what I thought is: make a Piont "one", if my "myImageView" is at the Point "one", then apply animationNo1, else apply animationNo2, but I got this:"used struct type value where scalar is required", at line "if (myImageView.layer.position = one) "
What I do? how can I fix this?
Does anyone know exactly what makes the problem happen? 
Thank you, very much.</p>

<pre><code> CGPoint one = CGPointMake(myImageView.layer.position.x, 100);

 if (myImageView.layer.position = one) 
 {
       animationNo1
 }

 else 
 {
       animationNo2
 }
</code></pre>
