I am trying to add shadow to my custom UICollectionViewCell
, This is the code I am using in my custom collection view cell class:
self.layer.shadowOffset = CGSizeMake(1, 0);
self.layer.shadowColor = [[UIColor blackColor] CGColor];
self.layer.shadowRadius = 5;
self.layer.shadowOpacity = .25;
This is giving shadow to the components of the collection view cell.