title: Shadow not fully extending the width of a UIView
body: <p>I'm applying a background shadow on a UIView to give it the appearance of it being "on top of" the background (which is a MapView), however the shadow doesn't fully extend on the wider iPhone 6 and 6+ screens even though the UIView I'm applying it to does.</p>
  
  <p>In <code>viewDidLoad</code> I am applying the shadow to the UIView using this code:</p>
  
  <pre><code>CALayer *layer = self.view_detailview.layer;
  layer.shadowOffset = CGSizeMake(1, 1);
  layer.shadowColor = [[UIColor blackColor] CGColor];
  layer.shadowRadius = 4.0f;
  layer.shadowOpacity = 0.80f;
  layer.shadowPath = [[UIBezierPath bezierPathWithRect:layer.bounds] CGPath];
  </code></pre>
  
  <p>In my storyboard I have a constraint set to force the UIView width to match the superviews width which is working without any problems or warnings.  But when I run my the app on a 6 or 6+ I see that the shadow doesn't fully extend like so:</p>
  
  <p><img src="https://i.stack.imgur.com/FEN3k.png" alt="Screenshot of how shadow doesn&#39;t extend"></p>
  
  <p>I can verify that the UIView does use the full width by setting its background color to something noticeable and seeing it fill the screen.</p>