hyperoslo / iOS-playbook

Hyper's iOS playbook
Other
227 stars 28 forks source link

How to init properties ? #151

Open onmyway133 opened 8 years ago

onmyway133 commented 8 years ago

I recently come across this Swift init that discusses the many ways of initializing properties. I often go with lazy var’s with side-effects for small size, and implicitly unwraped optional var! for more complex case

What do you think?

kostiakoval commented 8 years ago

This is my approach: