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
Don't forget to add these 2 lines
self.clipsToBounds = false self.layer.masksToBounds = false