3 ms·
* Lazy init for non-unit-test use. * No need to have 20 parameters in your init method signature. * Imitates Cocoa standard practices re: delegates. * Swift'
by archagon 11y ago
* Lazy init for non-unit-test use.
* No need to have 20 parameters in your init method signature.
* Imitates Cocoa standard practices re: delegates.
* Swift's optional binding makes it safe if you don't force-unwrap objects (and makes your code more robust to boot).