Add Shadow
func addShadowToView(_ view:UIView)
{
view.layer.shadowColor = UIColor.gray.cgColor
view.layer.shadowOpacity = 0.4
view.layer.shadowRadius = 4
view.layer.shadowOffset = CGSize(width: 2, height: 2)
}
func addShadowToView(_ view:UIView)
{
view.layer.shadowColor = UIColor.gray.cgColor
view.layer.shadowOpacity = 0.4
view.layer.shadowRadius = 4
view.layer.shadowOffset = CGSize(width: 2, height: 2)
}
Comments
Post a Comment