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…
All posts filed under “Architecture”
#41 Architecture Wars – MVC strikes back & takes a photo with AVFoundation
Not so long ago, in a galaxy not so far away… we promised you a series about architectural patterns. This post is a follow up for our initial issue on the topic. And finally, we can share with you the My Cards application written in MVC … The main idea behind this app is to refactor its code to fit…
#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…
#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…
#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…