Guest User

Untitled

a guest
Jan 16th, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. contentView.layer.cornerRadius = 20
  2. contentView.layer.masksToBounds = true
  3.  
  4. layer.shadowColor = UIColor.black.cgColor
  5. layer.shadowOpacity = 0.1
  6. layer.shadowOffset = CGSize(width: 0, height: 5.0)
  7. layer.shadowRadius = 5.0
  8. layer.shadowPath = UIBezierPath(roundedRect: bounds, cornerRadius: contentView.layer.cornerRadius - 3).cgPath
  9. layer.shouldRasterize = true
  10. layer.rasterizationScale = UIScreen.main.scale
Add Comment
Please, Sign In to add comment