Question : add box shadow in uicollectionview
Answered by : unsightly-unicorn-wterdnfkx3hd
myCollection.layer.shadowColor = UIColor.blackColor().CGColor
myCollection.layer.shadowOffset = CGSizeMake(0, 1)
myCollection.layer.shadowOpacity = 1
myCollection.layer.shadowRadius = 1.0
myCollection.clipsToBounds = false
myCollection.layer.masksToBounds = false
Source : https://stackoverflow.com/questions/32022384/how-to-add-drop-shadow-in-uicollectionview-using-swift | Last Update : Fri, 21 Aug 20