Combine with UIKit: Taking Small Steps Forward
11 min readMay 7, 2023
Keeping up with the latest trends and best practices in iOS development can feel like an uphill battle. As new libraries, frameworks, and other technologies flood our LinkedIn feeds, it’s easy to feel overwhelmed and anxious about falling behind the curve.
This blog covers combine available for deployment targets 13.0 and below.
Combine
Combine introduces a unified and simple approach to asynchronous programming.
Successful use of combine can reduce the need for…
- NotificationCenter
- Delegate Pattern
- Grand Central Dispatch
- Closures
The Three Basics of Combine
- Publisher: a type that can emit values to interested parties
- Subscriber: a type that can receive values from a publisher
- Operator: a type that modifies a publisher
Publishers
There are many ways to create a Publisher but there are two that will get you started quickly and those are…
Just(input)
/*
Just can wrap any type that conforms to the Equatable protocol,
including both Foundation types and…