title: How to identify which view a UIImageView collides with
body: <p>I have a <code>UIImageView</code> travelling on a <code>UIBezierPath</code> (call it <code>enemy</code>). The bezier path runs across multiple different images. Is there any way for me to get <code>enemy</code> to detect a collision between the views the <code>UIBezierPath</code> runs across and itself?</p>
  
  <p>But, when it detects the collision between itself and the other views, it has to identify which view it intersected with.</p>
  
  <p>Details if needed:</p>
  
  <ul>
  <li>None of the images or views are <code>IBOutlets</code>. (Not created in the storyboard)</li>
  <li>the <code>UIBezierPath</code> has no curves, it's a straight line</li>
  <li>all views the bezier path runs across are adjacent to each other </li>
  </ul>
  
  <p>I would prefer if the answer had max one <code>CGRectIntersectRect</code> if-statement, if it's possible.</p>