Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- contentView.layer.cornerRadius = 20
- contentView.layer.masksToBounds = true
- layer.shadowColor = UIColor.black.cgColor
- layer.shadowOpacity = 0.1
- layer.shadowOffset = CGSize(width: 0, height: 5.0)
- layer.shadowRadius = 5.0
- layer.shadowPath = UIBezierPath(roundedRect: bounds, cornerRadius: contentView.layer.cornerRadius - 3).cgPath
- layer.shouldRasterize = true
- layer.rasterizationScale = UIScreen.main.scale
Add Comment
Please, Sign In to add comment