Shadow not appearing under UIImageView (Swift)
<p>I have written the following code to download and display an image in the cells of a tableView. However, the drop shadow isn't appearing at all and I can't figure out what is wrong.</p>

<pre><code>cell.societyImage.setIndicatorStyle(UIActivityIndicatorViewStyle.White)
cell.societyImage.setShowActivityIndicatorView(true)
cell.societyImage.sd_setImageWithURL(NSURL(string: pictureURLs[objectIds[indexPath.row]]!),completed: { (image, error, cache, url) in                
     cell.societyImage.layer.shadowColor = UIColor(white: 0.7, alpha: 0.7).CGColor
     cell.societyImage.layer.shadowOffset = CGSizeMake(3, 3)
     cell.societyImage.layer.shadowOpacity = 0.4
     cell.societyImage.layer.masksToBounds = true
})
</code></pre>

<p>Any help is much appreciated!</p>