Static factory methods in Swift

In this entry in his weekly series, John Sundell looks at an approach to writing setup code which avoids subclassing. John demonstrates how using static factory methods can be a great way to separate setup code from actual logic, while also enabling nice syntax features.