title: iOS rounded UITextField with shadow
body: <p>I would like to add a shadow effect to my UITextField currently what I'm achieving is this:
  <a href="https://i.stack.imgur.com/kjYUh.png" rel="noreferrer"><img src="https://i.stack.imgur.com/kjYUh.png" alt="enter image description here"></a>
  <br>As you can see the shadow is not rounded in the corners. My code:</p>
  
  <pre><code>        mNickname.layer.borderWidth = 1
          mNickname.layer.borderColor = UIColor.whiteColor().CGColor
          mNickname.layer.cornerRadius = 3
  
          mNickname.layer.masksToBounds = false
          mNickname.layer.shadowRadius = 3.0
          mNickname.layer.shadowColor = UIColor.blackColor().CGColor
          mNickname.layer.shadowOffset = CGSizeMake(1.0, 1.0)
          mNickname.layer.shadowOpacity = 1.0
  </code></pre>