Special drop shadow: Swift 2
<p>In the image below, I have two types of drop shadows. </p>

<p>In swift, I've used this function: </p>

<pre><code>func applyShadow(view: UIView){
    view.layer.shadowColor = UIColor.blackColor().CGColor
    view.layer.shadowOffset = CGSizeMake(0, 1)
    view.layer.shadowOpacity = 0.5
    view.layer.shadowRadius = 10.0
    view.clipsToBounds = false
    view.layer.masksToBounds = false
}
</code></pre>

<p>to apply the shadow to the image in the image view.</p>

<p><em>How can I modify the applyShadow function to make the iOS drop-shadow match the effect of the web one?</em></p>

<p>I'm using .png files, but if I had to convert the file format, It wouldn't be too much more work.</p>

<p><a href="https://i.stack.imgur.com/yyJti.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/yyJti.png" alt="enter image description here"></a></p>