Add Shadow

 




func addShadowToView(_ view:UIView)

    {

        view.layer.shadowColorUIColor.gray.cgColor

        view.layer.shadowOpacity = 0.4

        view.layer.shadowRadius = 4

        view.layer.shadowOffset = CGSize(width: 2, height: 2)

    }



Comments

Popular posts from this blog

PUSH Notification

NotificationCenter