title: "used struct type value where scalar is required" at .layer.position
body: <p>I want to make a selection before apply one of two animations, 
  what I thought is: make a Point <code>one</code>, if my <code>myImageView</code> is at the Point <code>one</code>, then apply <code>animationNo1</code>, else apply <code>animationNo2</code>, but I got this:"used struct type value where scalar is required", at line <code>if (myImageView.layer.position = one)</code></p>
  
  <p>What I do? how can I fix this?
  Does anyone know exactly what makes the problem happen? </p>
  
  <pre><code> CGPoint one = CGPointMake(myImageView.layer.position.x, 100);
  
   if (myImageView.layer.position = one) 
   {
         animationNo1
   }
  
   else 
   {
         animationNo2
   }
  </code></pre>