Inside iOS Dev

Refactoring Large Initializer in Swift. Part 1. Dependency Injection with Default Values and Properties.

10.23.2021 - By Alex Bush, Sandeep AggarwalPlay

Download our free app to listen on your phone

Download on the App StoreGet it on Google Play

In this episode Sandeep and Alex refactor a class with a large initializer into something easier to use. This is part one of this series.

Sample code was taken from Fred’s tweet: https://twitter.com/frederickohen/status/1413595709471875072

More episodes from Inside iOS Dev