The 1px that took three weeks
Why a half-point icon offset caused a 1px bug on 3x iPhone displays while polishing Call It Done and GoWing, and the automated SVG build check that prevents sub-pixel drift forever.
One icon in the bottom navigation bar sat a single pixel lower than its neighbours while I was polishing Call It Done and GoWing. Only on 3x iPhones. Only in light mode. Across every single test build, nobody else ever spotted it.
It drove me quietly mad for three weeks.
Why half-point icon nudges break on 3x screens#
The icon lived on a 24-point grid, but its visual centre didn’t match its bounding box. Because the top curve pulled visual weight upward, I had manually nudged the vector path down by 0.5 pt in Figma so it looked balanced at 1x.
Here is the trap on modern Apple displays:
- On 2x screens,
0.5 ptequals an exact1.0 px— sharp and predictable. - On 3x screens (every modern Pro iPhone),
0.5 ptequals1.5 px— forcing Core Graphics to round up on some coordinates and down on others depending on surrounding layout origin.
The result was a 1-pixel vertical wobble that looked subtle in isolation and impossible to unsee once you noticed it next to two crisp neighbours.
The fix: optical geometry plus a build-time guard#
Instead of patching the offset in SwiftUI, I fixed the root cause in two steps:
- Redrew the vector on whole points. I adjusted the lower curve and stroke weight until its optical centre matched its exact geometric centre inside the
24 × 24artboard — zero manual nudges needed. - Automated the check in CI. Every SVG exported from Figma now passes through a small pre-build verification script that fails the build if any path bounding box or viewBox transform lands on a fractional half-point.

Was three weeks worth one pixel?#
For a single pixel, probably not. For the automated asset check, completely.
Since adding that check, it has silently caught half-point offsets across Call It Done widgets and GoWing watch complications before they ever reached a real device. That is what craft obsession looks like when it scales: turning a tiny annoyance into a permanent guardrail.