Etsy May 5, 2022

Improving the iOS Listing Screen with Generics

Article Summary

Etsy's iOS listing screen handles 16% of all app traffic. But after a decade, its monolithic architecture was slowing everything down.

Etsy's iOS team tackled a classic legacy code problem: their most critical screen had become a performance bottleneck and developer productivity nightmare. Engineer Hector García Peña shares how they refactored using Swift generics and protocols.

Key Takeaways

Critical Insight

By abstracting cell configuration with generics, Etsy made their highest traffic screen more performant while letting engineers add features without boilerplate overhead.

The article includes actual code showing how they packed generics into a diffable data source with just a one liner.

Recent from Etsy

Related Articles