title: UIView with rounded corners and drop shadow?
body: <p>I’ve been working on an application for a couple of years and received a simple design request: Round the corners on a UIView and add a drop shadow.To do as given below.</p>
  <p>I want a custom <code>UIView</code>... : I just wanted a blank white view with rounded corners and a light drop shadow (with no lighting effect). I can do each of those one by one but the usual <code>clipToBounds</code>/<code>maskToBounds</code> conflicts occur.</p>
  <p><a href="https://i.stack.imgur.com/zp17N.png" rel="noreferrer"><img src="https://i.stack.imgur.com/zp17N.png" alt="enter image description here" /></a></p>