🍫 CocoaPatterns β€” iOS & Mac Development Since 2009 RSS
🍫 CocoaPatterns
Because someone has to write this stuff down
"We ship apps. Sometimes they even work."

Architecture

Architecture March 31, 2026
Everything Is CGRect Calculation If You Believeβ„’
Auto Layout was a mistake. Constraints are a prison. The frame is truth. A manifesto for manual layout in the age of SwiftUI.
11 min
read β†’
Architecture June 28, 2015
Enum-Driven Development with ReactiveEnum: Every Value Is a Signal, Every Signal Is an Enum
What if your entire application state was a single enum with 847 cases? What if each case emitted a reactive signal? What if I've already built this?
9 min
read β†’
Architecture May 8, 2015
Single File Driven Development: One File. One Dream. 47,000 Lines.
File hierarchies are a crutch for people who can't hold an entire application in their head. We hold it in one file.
9 min
read β†’
Architecture March 5, 2015
Store App State on the App Icon Badge: A Production Architecture
4 billion bytes of iCloud storage and we're using a single integer visible on the home screen.
6 min
read β†’
Architecture February 5, 2015
Mobile Device Distributed Database: Your Users' Phones Are Your Server Farm
Why pay for AWS when your app has 50,000 active installs? That's 50,000 nodes in a distributed database cluster. They just don't know it yet.
10 min
read β†’
Architecture November 8, 2014
Macro-Driven Development: Write Code That Writes Code That You Can't Read
Why type the same boilerplate 200 times when a C preprocessor macro can type it for you incorrectly once?
9 min
read β†’
Architecture October 28, 2014
NSObject + Associated Objects: The Architecture Where Every Object Is Every Other Object
Why create new classes when you can just strap properties onto existing ones at runtime? NSObject is the only class you'll ever need.
10 min
read β†’
Architecture October 12, 2014
Send Entire UIViews via Push Notification: Why Stop at Data?
We already proved you can ship binaries via APNS. Now we're shipping the UI itself. Pixel by pixel if we have to.
11 min
read β†’