title: How to set Shadow on Bottom for UIView control + iOS swift
body: <p>Before asking this question, I found so many answers at stack overflow but none worked for my case.</p>
  <p>Requirement:
  <a href="https://i.stack.imgur.com/mjDnX.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/mjDnX.png" alt="enter image description here" /></a></p>
  <p>I tried:</p>
  <pre><code>private func setShadow() {
      contentView.layer.masksToBounds = false
      contentView.layer.shadowOffset = CGSize(width: 0, height: 1.5)
      contentView.layer.shadowRadius = 0.5
      contentView.layer.shadowOpacity = 0.5
      layer.shadowColor = UIColor.lightGray.cgColor
  }
  </code></pre>
  <p>I also play around with offset, radius, opacity; studied about each property, but none combination results in desired output. Any suggestions please.</p>