View Shadow and radius


lazy var containerView: UIView = {
 let view = UIView()
 view.translatesAutoresizingMaskIntoConstraints = false
 view.backgroundColor = .white
 view.layer.shadowColor = UIColor.gray.cgColor
 view.layer.shadowRadius = 2
 view.layer.shadowOpacity = 1
 view.layer.shadowOffset = CGSize(width: 1, height: 1)
 view.layer.cornerRadius = 8
 view.layer.masksToBounds = false
 return view
}()

Popular posts from this blog

PNScanner - Privacy Policy

Password With Show hide button

iOS Swift Custom Circular Progress bar