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
a man created with an emoji who holds a brush in one hand and a toolbox in the other

Keep your project clean using synx

A tool written in Ruby which can keep your project and a .pbxproj file clean. A valuable ally when solving complex conflicts inside the project file. Keeping a project file clean during a project life could be tough especially while working in a team, and we conflict our branches from time to time. Solving multiple conflicts in a .pbxproj can lead to mistakes that can cause duplicated references, not removed old references, or files not referenced by a project, but still existing in a project directory....

October 21, 2021 路 3 min 路 Maciej Gomolka