The Last UIKit Developer
It’s 2030. I’m sitting in a coffee shop in San Francisco, and across from me is Tim. He’s 45, graying at the temples, and he just told me he’s the last UIKit developer at his company. Not by choice, everyone else moved to Vibe Coded SwiftUI years ago. But someone has to maintain the legacy app.
Apple Announces iPhone 2.0 Software Beta
Includes SDK & Built-in Microsoft Exchange ActiveSync CUPERTINO, California-March 6, 2008-Apple® today previewed its…
The Day AI Came for Tim
Last week, Tim’s company ran an experiment. They fed their entire UIKit codebase into the latest AI model. “Convert this to SwiftUI,” they commanded. “Maintain all functionality.”
The AI churned for six hours. It produced 100,000 lines of SwiftUI code. It compiled. It even ran. For about ten seconds before crashing.
The AI had converted every UIViewController to a View. Every delegation pattern to a binding. Every UITableView to a List. It was technically correct, the best kind of correct. And it was completely, utterly broken.
The complex gesture recognizers? Gone. The custom transitions? Replaced with generic ones. The performance optimizations that kept the app smooth on an iPhone X? Ignored. Twenty years of accumulated knowledge, edge cases, and hard-won solutions: Vaporized.
“The AI doesn’t understand why the code is the way it is,” Tim explains. “It sees viewDidLayoutSubviews and thinks ‘oh, layout code.’ It doesn’t know this specific override fixes a bug on iPhone 8 Plus in landscape mode when the keyboard is showing and the user has large text enabled.”
Burried Alive
“Everyone thinks UIKit is dead,” he tells me over coffee. “But SwiftUI is just UIKit with a pretty dress on. Every NavigationStack? That’s a UINavigationController underneath. Every List? Used to be UITableView, now it’s UICollectionView with compositional layouts. Apple didn’t kill UIKit. They buried it alive, and it’s still breathing down there, doing all the work.”
The Framework That Solved Everything
Let’s give UIKit its flowers while it’s still technically alive. This framework didn’t just build apps, it built an entire industry. When iPhone OS 2.0 launched in 2008, UIKit was there, ready to turn a phone into a platform.
Think about what UIKit actually accomplished:
- Pixel-perfect layouts before we knew we needed them
- 60fps scrolling on hardware with 128MB of RAM
- Accessibility features that actually worked
- Animation APIs that made Android developers weep
- A view hierarchy system so robust it’s still powering your “modern” SwiftUI app
Even today, in iOS 18, the numbers don’t lie. Among 6,800 total binaries in the system, 592 use SwiftUI.
Apple’s use of Swift and SwiftUI in iOS 18
Apple’s use of Swift and SwiftUI in iOS 18
The rest? UIKit all the way down. Core system frameworks — UIKitCore, MessageUI, ContactsUI, EventKitUI, MapKit — they’re all UIKit. When SwiftUI needs to do something complex, where does it turn? UIKit.
- (UITableViewCell *)tableView:(UITableView *)tableView
cellForRowAtIndexPath:(NSIndexPath *)indexPath {
// This method signature built a trillion dollar ecosystem
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"Cell"];
// Magic happened here
return cell;
}
- (UITableViewCell *)tableView:(UITableView *)tableView
cellForRowAtIndexPath:(NSIndexPath *)indexPath {
// This method signature built a trillion dollar ecosystem
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"Cell"];
// Magic happened here
return cell;
}
“Look at that method,” Tim says with genuine awe. “It’s poetry. Every iOS developer who has ever lived knows that signature by heart. It’s burned into our neurons.”
The Architecture That Refused to Die
Here’s the dirty secret Apple doesn’t want you to know (well, at least they hide it well enough): SwiftUI is UIKit’s greatest triumph. Not its replacement, its evolution. Its final form.
When you write this beautiful SwiftUI:
NavigationStack {
List(items) { item in
Text(item.title)
}
}
NavigationStack {
List(items) { item in
Text(item.title)
}
}
What actually happens? SwiftUI creates a UINavigationController, wraps it in a UIHostingController, generates a UICollectionView (they switched from UITableView in iOS 16 for better performance), and manages the whole dance behind the scenes. Your declarative code is just instructions for UIKit.
struct ContentView: View {
var body: some View {
List {
Text("Item 1")
Text("Item 2")
Text("Item 3")
}
.introspect(.list, on: .iOS(.v13, .v14, .v15)) {
print(type(of: $0)) // UITableView
}
.introspect(.list, on: .iOS(.v16, .v17, .v18, .v26)) {
print(type(of: $0)) // UICollectionView
}
}
}
struct ContentView: View {
var body: some View {
List {
Text("Item 1")
Text("Item 2")
Text("Item 3")
}
.introspect(.list, on: .iOS(.v13, .v14, .v15)) {
print(type(of: $0)) // UITableView
}
.introspect(.list, on: .iOS(.v16, .v17, .v18, .v26)) {
print(type(of: $0)) // UICollectionView
}
}
}
Note: if you want to introspect SwiftUI components to access their UIKit backing components, you can use the Introspect library, which is absolutely great. It is both for workarounds and for learning which SwiftUI components are backed by which UIKit components.
“I use SwiftUI Introspect all the time,” Tim explains. “You traverse the view hierarchy between the marker views, and boom, there’s your UIKit component. ScrollView? That’s UIScrollView. TextField? UITextField. The only truly native SwiftUI components are the simple ones: Text, Image, Button. Everything complex is UIKit in disguise.”
And the proof is in the apps. Mail, Messages, Safari, Photos, Phone, Maps — all the apps that actually matter, that handle real complexity? Still UIKit. Apple’s own engineers know: when you need performance, when you need control, when you need it to actually work at scale, you use UIKit.
The Immortal Codebase
At Tim’s company, they have The App. You know the one. Started in 2009. Objective-C all the way down. 2 million lines of code. 500 custom view controllers. It processes half their revenue.
“We’ve tried to migrate it three times,” Tim laughs. “The Calculator app went SwiftUI in iOS 18. Passwords app? Built from scratch in SwiftUI. But our app? With its custom UICollectionView layouts doing Pinterest-style waterfalls? With its CALayer animations synchronized through timing curve extraction? With its physics-based interactions using UIKit Dynamics? Good luck.”
The AI agreed. When they fed the codebase to GPT-7, it analyzed everything, the responder chain event propagation for loose coupling, the custom presentation controllers with interactive dismissal, the multi-pass Auto Layout with dynamic constraint switching. And don’t forget text input and rendering. With custom NSAttributedStringattributes. Its verdict?
“RECOMMENDATION: Maintain existing UIKit implementation. SwiftUI lacks equivalent capabilities for: custom collection layouts, CALayer property animations, UIKit Dynamics physics, responder chain manipulation, and approximately 47 other identified patterns.”
Even the AI understood: UIKit isn’t broken. It’s complete.
The Lost Art of Manual Memory Management
There was a time when we were wizards. Real wizards. We counted references in our heads, balanced every alloc with a release, and debugged memory leaks with nothing but NSLog and intuition. And a profiler nobody but magicians understood.
<button data-code="- (void)setDelegate:(id)delegate {
// The ancient ritual – delegates were always 'assign' to avoid retain cycles
if (_delegate != delegate) {
_delegate = delegate; // No retain! This was the way.
}
}
– (void)dealloc {
[_myView release];
[_myArray release];
// Delegates were never released – they didn't own us
_delegate = nil;
[super dealloc];
}” data-toggle-ms=”1200″ aria-label=”Copy code” data-nosnippet=”” class=”code-copy-btn absolute right-3 top-3 size-8 p-1.5 flex items-center justify-center bg-black/50 text-white rounded-md transition-colors duration-200 cursor-pointer hover:bg-black/70″>
- (void)setDelegate:(id<MyDelegate>)delegate {
// The ancient ritual - delegates were always 'assign' to avoid retain cycles
if (_delegate != delegate) {
_delegate = delegate; // No retain! This was the way.
}
}
- (void)dealloc {
[_myView release];
[_myArray release];
// Delegates were never released - they didn't own us
_delegate = nil;
[super dealloc];
}
- (void)setDelegate:(id<MyDelegate>)delegate {
// The ancient ritual - delegates were always 'assign' to avoid retain cycles
if (_delegate != delegate) {
_delegate = delegate; // No retain! This was the way.
}
}
- (void)dealloc {
[_myView release];
[_myArray release];
// Delegates were never released - they didn't own us
_delegate = nil;
[super dealloc];
}
“We lived by the Golden Rules,” Tim reminisces. “You own what you alloc, new, or copy. Balance every ownership with release. Never release what you don’t own. And delegates? Always assign, never retain. That’s how you avoided retain cycles before weak references existed.”
The patterns we developed then still echo today. The weak delegate pattern? Born from manual memory management. The copy attribute for properties? Defensive programming against mutable strings. Even SwiftUI’s reference type handling traces back to lessons learned in the pre-ARC era.
- (void)processDataWithBlock:(void (^)(NSData *))block {
// Blocks started on the stack! Had to copy them to the heap
void (^heapBlock)(NSData *) = [block copy];
[_blocks addObject:heapBlock];
[heapBlock release]; // Because copy gave us ownership
}
- (void)processDataWithBlock:(void (^)(NSData *))block {
// Blocks started on the stack! Had to copy them to the heap
void (^heapBlock)(NSData *) = [block copy];
[_blocks addObject:heapBlock];
[heapBlock release]; // Because copy gave us ownership
}
“NSAutoreleasePool,” Tim sighs. “Every thread needed one. Factory methods returned autoreleased objects. It was elegant in its explicitness. You knew exactly when memory would be freed.”
The Museum of Lost Patterns
Tim keeps a folder on his desktop called “Museum.” It’s filled with UIKit techniques that SwiftUI can’t replicate. Techniques that shipped billions (YES $$BILLIONS) of dollars worth of apps.
CALayer Animation Synchronization: Extract timing curves from implicit animations to coordinate multiple layers impossible in SwiftUI’s animation system.
- (void)animateLayers {
// Begin a CATransaction to capture the implicit animation
[CATransaction begin];
[CATransaction setAnimationDuration:1.5];
[CATransaction setAnimationTimingFunction:[CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionEaseInEaseOut]];
// Change the position of layerA (triggers implicit animation)
CGPoint newPosition = CGPointMake(250, 100);
self.layerA.position = newPosition;
// Commit the transaction
[CATransaction commit];
// Extract the implicit animation from layerA
CAAnimation *animation = [self.layerA animationForKey:@"position"];
if (!animation) {
// Implicit animations are not directly accessible, so we create a matching explicit animation
CABasicAnimation *syncAnimation = [CABasicAnimation animationWithKeyPath:@"position"];
syncAnimation.fromValue = [NSValue valueWithCGPoint:self.layerB.position];
syncAnimation.toValue = [NSValue valueWithCGPoint:CGPointMake(250, 200)];
syncAnimation.duration = 1.5;
syncAnimation.timingFunction = [CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionEaseInEaseOut];
// Apply the animation to layerB
self.layerB.position = CGPointMake(250, 200);
[self.layerB addAnimation:syncAnimation forKey:@"position"];
}
}
- (void)animateLayers {
// Begin a CATransaction to capture the implicit animation
[CATransaction begin];
[CATransaction setAnimationDuration:1.5];
[CATransaction setAnimationTimingFunction:[CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionEaseInEaseOut]];
// Change the position of layerA (triggers implicit animation)
CGPoint newPosition = CGPointMake(250, 100);
self.layerA.position = newPosition;
// Commit the transaction
[CATransaction commit];
// Extract the implicit animation from layerA
CAAnimation *animation = [self.layerA animationForKey:@"position"];
if (!animation) {
// Implicit animations are not directly accessible, so we create a matching explicit animation
CABasicAnimation *syncAnimation = [CABasicAnimation animationWithKeyPath:@"position"];
syncAnimation.fromValue = [NSValue valueWithCGPoint:self.layerB.position];
syncAnimation.toValue = [NSValue valueWithCGPoint:CGPointMake(250, 200)];
syncAnimation.duration = 1.5;
syncAnimation.timingFunction = [CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionEaseInEaseOut];
// Apply the animation to layerB
self.layerB.position = CGPointMake(250, 200);
[self.layerB addAnimation:syncAnimation forKey:@"position"];
}
}
Custom UICollectionView Layouts: Pinterest-style waterfalls, parallax effects, physics simulations, all through manual calculation of every cell’s position.
- (UICollectionViewLayoutAttributes *)layoutAttributesForItemAtIndexPath:(NSIndexPath *)indexPath {
// 500 lines of matrix math to create magic
}
- (UICollectionViewLayoutAttributes *)layoutAttributesForItemAtIndexPath:(NSIndexPath *)indexPath {
// 500 lines of matrix math to create magic
}
Responder Chain Wizardry: Loose coupling between view controllers without delegates or notifications.
// Send actions up the chain until someone handles it
[self.nextResponder targetForAction:@selector(handleCustomAction:)
withSender:self];
// Send actions up the chain until someone handles it
[self.nextResponder targetForAction:@selector(handleCustomAction:)
withSender:self];
UIKit Dynamics: Real physics for UI elements. Gravity, collisions, springs — all built in.
[_animator addBehavior:[[UIGravityBehavior alloc] initWithItems:@[card]]];
[_animator addBehavior:[[UICollisionBehavior alloc] initWithItems:@[card]]];
// Tinder swipe physics in 3 lines
[_animator addBehavior:[[UIGravityBehavior alloc] initWithItems:@[card]]];
[_animator addBehavior:[[UICollisionBehavior alloc] initWithItems:@[card]]];
// Tinder swipe physics in 3 lines
“These aren’t just old patterns,” Tim insists. “They’re solutions to problems SwiftUI hasn’t even acknowledged exist yet.”
The Long Game
UIKit isn’t dying. It’s ascending. Becoming infrastructure. Like UNIX beneath macOS, like C beneath everything, UIKit is disappearing into the foundation of the platform itself.
“You know what’s funny?” Tim asks. “Junior developers think SwiftUI is easier. But when something goes wrong, when performance tanks, when animations stutter, when memory leaks, where do they end up? In my office, looking at UIKit stack traces, trying to understand what their SwiftUI code actually did.”
He shows me a SwiftUI memory leak. The Instruments trace leads through SwiftUI, through Combine, through diffing algorithms… and lands in UIKit. A retained UIViewController. A classic retain cycle. The same bug we’ve been fixing for 15 years, just with more layers on top.
The Eternal Framework
So here’s to UIKit. The framework that built an industry. The architecture that refused to be replaced. The codebase that will outlive us all.
Your UIViewController subclasses were cathedrals of functionality. Your UIView hierarchies gave us pixel-perfect control. Your delegate protocols may have been verbose, but they were honest. Your drawRect: methods may have been dangerous, but they were powerful.
And to Tim, and all the UIKit developers still out there, maintaining the apps that actually matter: You’re not the last of a dying breed. You’re the keepers of the foundation. The guardians of what works. The priests of the temple that everyone else built on top of.
UIKit isn’t dead. It won so completely that it became invisible. It’s in every SwiftUI view, every system framework, every animation that actually performs well. It’s the 6,200 binaries out of 6,800 that keep iOS running.
In 2040, when we’re describing apps to AI, when no one remembers what a delegate protocol is, when Swift itself is just a memory, UIKit will still be there. Hidden in the frameworks. Running the animations. Managing the memory. Doing the work.
Because that’s what infrastructure does. It disappears into the foundation and holds everything up.
The End
This is a love letter to UIKit, the framework I’ve built my career with. Same as SwiftUI is built on top of UIkit.
This is also a critique of SwiftUI, which, to this day, is mostly a nicely wrapped reactive version of UIKit. Apple is certainly taking it slowly.
- (void)dealloc {
[super dealloc];
[tim release];
[story release];
}
- (void)dealloc {
[super dealloc];
[tim release];
[story release];
}

