Swift Factory Method Pattern: Why Use It Instead of init
Swift factory functions give creation logic intent-revealing names and make return types and reuse policies flexible. This covers when to choose static func over init and how it differs from the GoF Factory Method.
Read article