I have a cell with a translucent fill. Since the fill is translucent, I can see the shadow behind the fill. How can I hide the shadow under the cell's fill?
self.layer.cornerRadius = 6
self.layer.masksToBounds = false
self.layer.shadowOpacity = 0.8
self.layer.shadowColor = UIColor.black.withAlphaComponent(0.6).cgColor
self.layer.shadowRadius = 2
self.layer.shadowOffset = CGSize(width: 5, height: 5)