Countdown timer view in pure SwiftUI without Timer
Recently at work, I stumbled upon an interesting component. While all the implementations on the internet use Timer
for the purposes of counting time, I came up with a better solution. Let’s see.
Serializing code execution in modern concurrency
In the pre-concurrency world, we had mechanisms for serializing code execution. Serial DispatchQueue
s allowed us to run code one block after another. But modern concurrency misses this concept. Let’s fill the gap and implement it ourselves.
Generalizing styling APIs for SwiftUI components
When you need to develop an app using SwiftUI, you will inevitably end up building your design system. And your components will require their own styling. Let’s design the API for that.
The hidden (in plain sight) power of KeyPaths
Let’s talk about KeyPath
s - the tiny yet powerful building blocks of modern APIs. In this article we’ll discover what they are, where they came from and how to use them to make a better programming experience.