If you spend enough time around a Swift developer, you'll hear them mention protocol-oriented programming. Apple introduced this programming paradigm at WWDC 2015 in a talk that generated a lot of buzz among developers. Suddenly, we learned that thinking in classes and hierarchies leads to code that's hard to maintain, modify, and expand. The talk introduced a way of programming that is focused on what an object can do instead of explicitly caring about what an object is.
This chapter is packed with complex and interesting information that is essential if you want to write beautiful Swift code. You will learn how you can make use of the powers of POP, and it will show you why it's an essential feature of Swift. You'll start off with some simple use cases, and then you'll take a deep dive into its...