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鈥檚 often said that with great power comes great responsibility. Therefore, as developers, it鈥檚 essential for us to understand how to harness it, so it does not backfire. Today, we鈥檙e going to take a closer look 馃憖 at a few Combine operators, showcasing their practical application. ...

April 11, 2024 路 7 min 路 Maciej Gomolka
scientist at desk created with emojis

Testing SwiftData and the Query property wrapper through an example

We鈥檙e just after this year鈥檚 WWDC where we had a chance to witness the unveiling of a new persistence framework called SwiftData. Naturally, I couldn鈥檛 resist delving deeper into it. One particular topic that caught my attention was the observation of local storage using Query and its testability. SwiftData SwiftData makes it easy to persist data using declarative code. You can query and filter data using regular Swift code. And it鈥檚 designed to integrate seamlessly with SwiftUI. ...

June 25, 2023 路 8 min 路 Maciej Gomolka