Xcode iOS Programming with Swift Tutorial - Adding Shadows to Views

Pubblicato il: 27 maggio 2017
sul canale di: 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/


In questa pagina del sito puoi guardare il video online Xcode iOS Programming with Swift Tutorial - Adding Shadows to Views della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Programming and Development Channel 27 maggio 2017, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 5,874 volte e gli è piaciuto 73 spettatori. Buona visione!