Contributions

Article
As iOS developers, view styling is our daily job.
To achieve this job, either we create UI controls subclasses, either we style our views in the view controller. But none of those solutions are perfect: on one side we have a rigid hierarchy and we loose composition, on the other side we repeat ourselves easily.
This blogpost leverages Swift functions to create namespaces to define view styles. The final API is clean and very simple.