December 2018
Intermediate to advanced
414 pages
10h 19m
English
In conclusion, the builder pattern can be very powerful for a very particular use case in Swift. You should use it when you have an object construction that can span over time, and where it's cleaner to pass your builder around instead of aggregating all partial values.
It makes a lot of sense in Swift to leverage this pattern, instead of polluting your structs or classes with optionals.
To find out whether the builder is the right solution for you, follow these steps:
Read now
Unlock full access