Shadows are a very great addition to good design, and it is good to know how to create them.
Here is the code for adding a custom shadow to a UIView-
// Styles
shadowView.layer.cornerRadius = 3
shadowView.layer.shadowColor = UIColor(red:0/255.0, green:0/255.0, blue:0/255.0, alpha: 1.0).cgColor
shadowView.layer.shadowOffset = CGSize(width: 0, height: 1.75)
shadowView.layer.shadowRadius = 1.7
shadowView.layer.shadowOpacity = 0.45
Check out some of our other easy 5-minute programming tutorials!
MUSIC-
On My Way Kevin MacLeod (incompetech.com)
Licensed under Creative Commons: By Attribution 3.0 License
https://creativecommons.org/licenses/
Sur cette page du site, vous pouvez voir la vidéo en ligne Xcode iOS Programming with Swift Tutorial - Adding Shadows to Views durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Programming and Development Channel 27 mai 2017, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 5,874 fois et il a aimé 73 téléspectateurs. Bon visionnage!