I am trying to add shadow to my custom UICollectionViewCell, This is the code I am using in my custom collection view cell class:
UICollectionViewCell
self.layer.shadowO
cell.layer.backgroundColor should not be clear color
try
cell.layer.backgroundColor = UIColor.white.cgColor