title: How to control shadow spread and blur?
body: <p>I have designed UI elements in sketch, and one of them has a shadow with blur 1 and spread 0. I looked at the doc for the views layer property and layer doesn't have anything named spread or blur, or anything equivalent (the only control was merely shadowOpacity). How can control things like blur and spread?</p>
  <p>Here are my settings in Sketch:</p>
  <p><a href="https://i.stack.imgur.com/NwHOY.png" rel="noreferrer"><img src="https://i.stack.imgur.com/NwHOY.png" alt="Sketch shadow settings" /></a></p>
  <p>And here is what I want my shadow to look like:</p>
  <p><a href="https://i.stack.imgur.com/pGNYw.png" rel="noreferrer"><img src="https://i.stack.imgur.com/pGNYw.png" alt="Shadow wanted" /></a></p>
  <p>And here is what it looks like at the moment:</p>
  <p><a href="https://i.stack.imgur.com/teylM.png" rel="noreferrer"><img src="https://i.stack.imgur.com/teylM.png" alt="Current shadow" /></a></p>
  <p>Note, you have to click on the picture to actually see the shadow.</p>
  <p>My code is as follows:</p>
  <pre><code>func setupLayer(){
      view.layer.cornerRadius = 2
      view.layer.shadowColor = Colors.Shadow.CGColor
      view.layer.shadowOffset = CGSize(width: 0, height: 1)
      view.layer.shadowOpacity = 0.9
      view.layer.shadowRadius = 5
  }
  </code></pre>