I would like to give shadow effect like card similar to the image in my iOS app
I need this on UITableViewCell the image will not work for me also the the g
extension UIView { func addShadow(){ self.layer.cornerRadius = 20.0 self.layer.shadowColor = UIColor.gray.cgColor self.layer.shadowOffset = CGSize(width: 0.0, height: 0.0) self.layer.shadowRadius = 12.0 self.layer.shadowOpacity = 0.7 } }