title: Property cannot be found on forward class object?
body: <p>I have a UIView and I'm trying to set its layer properties.</p>
  
  <pre><code>self.colorSwatch = [[UIView alloc] initWithFrame:CGRectMake(400, 150, 100, 100)];
  self.colorSwatch.layer.cornerRadius = 8; 
  </code></pre>
  
  <p>However, when I try to access the <code>.layer.cornerRadius</code> property, I get a warning that says "Property 'cornerRadius' cannot be found in forward class object 'CALayer *'.</p>
  
  <p>What does this mean? Thanks</p>