Chapter    3

Creating the SportsStore App

In the previous chapter, I showed you how Xcode can be used to create playgrounds and command-line tools, which are how I introduce each of the design patterns in the chapters that follow.

I like to provide as many code examples as I can in my books, so in this chapter I create an iOS app called SportsStore. The app I create is entirely unstructured, which means I simply bolt the code and the UI together as directly as possible without any thought to the long-term consequences. This is, of course, the antithesis to design patterns, but it is a surprisingly common development style. Throughout this book, I apply the design patterns to the unstructured application to provide additional context for their ...

Get Pro Design Patterns in Swift now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.