Open onmyway133 opened 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
lazy var’s with side-effects
implicitly unwraped optional var!
What do you think?
This is my approach:
init()
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, andimplicitly unwraped optional var!
for more complex caseWhat do you think?