O'Reilly logo

Mastering iOS 10 Programming by Donny Wals

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 7.  Refactoring the HelloContacts Application

When we built HelloContacts, we used classes and classical Object-Oriented Programming techniques. Now that you have seen how value types and protocols can improve your code, it's a good idea to revisit the HelloContacts application to see how we can improve it with this newfound knowledge. Even though our app is fairly small, there're a few places where we can improve the app and make it more flexible and future-proof.

This chapter will be all about making the HelloContacts application swifter than it is now. We'll do this by implementing elements of the app with protocols and value types. The structure for this chapter is as follows:

  • Properly separating concerns
  • Adding protocols for clarity ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required