Mes articles

Fix macOS Forgetting Display Setup using DisplayPlacer and Shortcuts

If you use multiple monitors on macOS, you’ve probably faced the frustrating issue where macOS randomly forgets your display arrangement, resolution, or orientation preferences. This is especially painful when you switch between workstations or use a dock.

Detect Volume Button Presses in iOS

Recently I needed to detect when users are changing the volume on their phone and couldn’t find a working solution : Apple doesn’t expose direct APIs for hardware button events. Fortunately, there’s a simple trick that works consistently across all iOS versions.

Stop Duplicating Version and Build Numbers Across iOS Target

If you ever worked on a multi target iOS project, let’s say an app with a watch companion, a widget and an iMessage extension, you probably had the painful experience of updating the version and build number every time you ship.

Implementing Retry Logic with Async/Await in Swift

Swift’s async/await simplifies asynchronous programming, but tasks sometimes fail, especially network calls. Let’s see how can we simply implement a retry logic.

How to Vertically Center Content in a SwiftUI ScrollView: From Early Hacks to Modern Elegance

SwiftUI layouts changed a lot. Vertically centering content inside ScrollViews used to mean weird hacks and clever workarounds. Things got simpler, thankfully.

Mastering Swift’s OptionSet: A Powerful, Memorable Tool for Bitmasking

When building apps in Swift, you often face scenarios where you need to combine multiple configuration options into a single value. Swift’s OptionSet is a powerful tool for this purpose.

SwiftUI in 5min: Draw a Water Drop with Shape and Path

Have you ever copy-pasted some path code, tried to understand it enough to tweak it, only to give up — either using it as-is or deleting it — only to face the exact same dilemma a few months later?