On the left side, the post title, and on the right, an image with a list of 5 tests, each accompanied by tags.

Insights about Swift Testing Tags

Today, I have a special post about Apple’s new testing framework - Swift Testing! 🤩 Swift Testing was presented at WWDC24 as a new, modern, simplified framework for writing automated tests. It’s a perfect candidate to replace XCTest unit tests, so it’s definitely worth learning 🧑‍🏫 The topic of Swift Testing is quite broad, so I decided to break it down into more digestible parts, starting with Swift Testing Tags. What is this? 🤔 ...

July 11, 2024 · 1 min · Maciej Gomolka
Title in the center surrounded by colorful pixel balls

My WWDC 2017 Scholarship submission

Intro This year’s WWDC is just around the corner, and I decided to write about how I ended up at WWDC in 2017. At that time, I was a computer science student and Apple was organizing Swift Student Challange for which I was eligible for. As a young iOS apprentice, I couldn’t miss this opportunity - I signed up. How did I get there? That’s what I want to share with you today. ⤵️ ...

June 10, 2024 · 3 min · Maciej Gomolka
Post title on the left, a diagram symbolizing the red-green-refactor approach

Testing SwiftUI Code - The beginning (UI)

Intro Hello everyone and welcome to my first (ever) blog series! Today, I’m going to begin experimenting with SwiftUI. The mission is to build a small application and having it fully tested 💯. I decided to go for that quest to broaden my knowledge around SwiftUI and verify the rumors that it cannot be tested. To keep it relatively readable I decided to split it up and we’re going to see how many parts we end up with. ...

June 6, 2024 · 10 min · Maciej Gomolka
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
scientist at desk created with emojis

Testing SwiftData and the Query property wrapper through an example

We’re just after this year’s WWDC where we had a chance to witness the unveiling of a new persistence framework called SwiftData. Naturally, I couldn’t 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’s designed to integrate seamlessly with SwiftUI. ...

June 25, 2023 · 8 min · Maciej Gomolka