When you first built Hello-Contacts in Chapters 1, UITableView Touch-up to Chapter 3, Creating a Detail Page, you used classes and 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 Hello-Contacts application to see how you can improve it with this newfound knowledge. Even though the app is relatively small, there are a few places where you can make significant improvements to make it more flexible and future-proof.
This chapter is all about making the Hello-Contacts application Swiftier than it is now. You'll do this by implementing certain parts of the app with protocols and value types instead of classes and OOP. This chapter will cover the following topics:
- Properly separating concerns
- Adding protocols for clarity