title: iOS White to Transparent Gradient Layer is Gray
body: <p>I have a CAGradientLayer inserted to the bottom of this small detail view that pops up at the bottom of the app. As you can see, I've set the colors from white to clear, but there's this strange gray tint that is showing up. Any ideas?</p>
  
  <pre><code>    // Set up detail view frame and gradient
      [self.detailView setFrame:CGRectMake(0, 568, 320, 55)];
  
      CAGradientLayer *layer = [CAGradientLayer layer];
      layer.frame = self.detailView.bounds;
      layer.colors = [NSArray arrayWithObjects:(id)[UIColor whiteColor].CGColor, (id)[UIColor clearColor].CGColor, nil];
      layer.startPoint = CGPointMake(1.0f, 0.7f);
      layer.endPoint = CGPointMake(1.0f, 0.0f);
      [self.detailView.layer insertSublayer:layer atIndex:0];
  </code></pre>
  
  <p>Here is the problematic view:</p>
  
  <p><a href="https://i.stack.imgur.com/4oTWh.png" rel="noreferrer"><img src="https://i.stack.imgur.com/4oTWh.png" alt="Here is the problematic view"></a></p>