title: Comparing two CGRects
body: <p>I needed to check wether the frame of my view is equal to a given CGRect. I tried doing that like this:</p>
  
  <pre><code>CGRect rect = CGRectMake(20, 20, 20, 20);
  if (self.view.frame == rect)
  {
      // do some stuff
  }
  </code></pre>
  
  <p>However, I got an error saying <code>Invalid operands to binary expression('CGRect' (aka 'struct CGRect') and 'CGRect')</code>. Why can't I simply compare two <code>CGRect</code>s?</p>