Xcode iOS Programming with Swift Tutorial - Adding Shadows to Views

Publicado el: 27 mayo 2017
en el canal de: Programming and Development Channel
5,874
73

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/


En esta página del sitio puede ver el video en línea Xcode iOS Programming with Swift Tutorial - Adding Shadows to Views de Duración hora minuto segunda en buena calidad , que subió el usuario Programming and Development Channel 27 mayo 2017, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 5,874 veces y le gustó 73 a los espectadores. Disfruta viendo!