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/
Nesta página do site você pode assistir ao vídeo on-line Xcode iOS Programming with Swift Tutorial - Adding Shadows to Views duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário Programming and Development Channel 27 Maio 2017, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 5,874 vezes e gostou 73 espectadores. Boa visualização!