Creating Pipelines with Combine
Data flow is a central programming topic, not just in iOS development. Indeed, we have many solutions and design patterns to address data flow management. It was only in 1997 that the computer science world introduced reactive programming – a programming paradigm focusing on data streams, enabling declarative composition.
Apple’s version of reactive programming is Combine, a framework that provides infrastructure for building data streams in our apps. It is also the infrastructure of SwiftUI, enabling it to be a declarative framework.
In this chapter, we will do the following:
- Discuss the reasons to use Combine in our projects
- Go over the basics
- Delve into Combine
- Learn about Combine using examples
Before we start going over the Combine framework, let’s understand why we should use Combine.