All posts filed under “Architecture

comment 0

#49 The Builder Pattern

In issue #41 in which we have built an app that uses a photo camera to capture one’s loayalty cards we used a pattern that we named Builder to configure properties of objects. How does the code look like when we use Builder pattern? We simply initialize an object we want to configure and call the with(:) function on the…

comments 12

#24 Architecture Wars – A New Hope

A long time ago in a galaxy far, far away… Or maybe not that far away… Have you ever had a feeling, as I have had many times, that the design of your app seemed so brilliant at first, but suddenly adding more and more features to it made your source code more complicated and eventually, unmaintainable. Presumably you hadn’t…

comment 0

#15 Nested enums or rather never ending posts about enums:)

Today I would like to discuss how to present UITableViewCell contents by using enums. A simple switch statement can help us with displaying data on our tableView. What scenario would I like to focus on? PlaceInfoView To be more precise, I have created a simple schema of this screen: PlaceInfoScheme By the way, have you had a chance to use…

comments 29

#8 VIPER to be or not to be?

This time we would like to tell our story and share the experience about VIPER. Especially about good practices, how we deal with some specific cases and about our recommendations. We count on the comments with your experience!:) In this article our goal is not to talk about VIPER’s rules and explain every component of VIPER from scratch. Many sources…