Views are a foundational building block in iOS apps.
As you gain more experience, or start to work on complex projects, the way you write views will evolve and you will start paying more attention to design patterns, testability and consistency. There are many approaches to try out! Our experience at iZettle led us to an interesting functional way of thinking about views that we would like to share.
Let’s assume we have a hierarchy of views that are reused in a few places. It consists of a label and a text field, they look like this:
How would we usually organize the code related to them? …
About