Thinking emoji in the center, on two sides of the emoji, one option under consideration (left: flatMap, right: map + switchToLatests operators)

Combine: flatMap, map + switchToLatests (flatMapLatest) demystified

Intro Combine is a framework made by Apple designed to support us in writing code that could be way more complex if written in an imperative way. It’s often said that with great power comes great responsibility. Therefore, as developers, it’s essential for us to understand how to harness it, so it does not backfire. Today, we’re going to take a closer look 👀 at a few Combine operators, showcasing their practical application....

April 11, 2024 · 7 min · Maciej Gomolka