Five years after Apple introduced SwiftUI at WWDC 2019, the question still sparks heated debate in every iOS team: should we use SwiftUI or stick with UIKit? Having shipped over 50 iOS apps at Obsy Mobile — from simple MVPs to complex enterprise platforms — we've formed strong, data-backed opinions. Here's a frank breakdown.
The State of Play in 2025
SwiftUI has matured enormously. iOS 17 and 18 closed many of the feature gaps that used to make UIKit
indispensable. The @Observable macro replaced the cumbersome ObservableObject
pattern, SwiftData brought declarative persistence, and NavigationStack
finally gave us deep-link-friendly navigation.
That said, UIKit is far from dead. Apple continues to invest in it — every new UIKit release in recent years has been substantial. The two frameworks are designed to coexist, and in production you'll almost always use both.
Performance: Who Wins?
This is where nuance matters most. SwiftUI's declarative diff engine is remarkably efficient for most screens. For long, dynamic lists, complex animations, or camera/video pipelines, UIKit (or direct Metal/AVFoundation calls) is still faster and more predictable.
"We rebuilt a 500-item lazy list in SwiftUI with iOS 17's
Listimprovements and got within 5% of the UIKit version's scroll performance — that gap didn't exist in iOS 15."
The practical takeaway: for 90% of screens, SwiftUI performance is indistinguishable from UIKit. For
media-heavy or compute-intensive views, use UIKit or wrap it in a UIViewRepresentable.
Feature-by-Feature Comparison
| Feature | SwiftUI | UIKit |
|---|---|---|
| Development speed | Faster — less boilerplate | Slower — more ceremony |
| Previews / Xcode Canvas | Native, live | Not supported |
| Complex custom animations | Good (iOS 17+) | Excellent |
| Large dynamic lists | Good (iOS 17+) | Excellent |
| Video / camera / AR | Wrap UIKit | Native |
| Accessibility | Automatic + easy | Manual but granular |
| tvOS / watchOS / visionOS | First-class | Limited / unavailable |
| Minimum deployment target | iOS 16+ for best DX | iOS 13+ |
| Team hiring pool | Growing fast | Large |
| Long-term Apple direction | Primary focus | Maintained, not primary |
When to Choose SwiftUI
- Your minimum deployment target is iOS 16 or higher
- You're building an MVP or need to iterate quickly
- Your app targets multiple Apple platforms (watchOS, tvOS, visionOS)
- Your team is small and you want to maximise developer productivity
- You're starting fresh — no legacy codebase to migrate
When to Choose UIKit
- You must support iOS 14 or earlier
- The app is heavily media-focused (streaming, AR/VR, camera)
- You have an existing UIKit codebase and a tight migration budget
- Your team is deeply experienced in UIKit and SwiftUI knowledge is scarce
- You need fine-grained control over the view hierarchy for custom animations
Start with SwiftUI for all screens. When you hit a wall — complex gestures, performance-critical
lists, native video playback — drop in UIViewRepresentable wrappers. This hybrid
approach is what Apple itself uses internally and it gives you the best of both worlds.
Migrating from UIKit to SwiftUI
Don't attempt a big-bang rewrite. Instead, adopt a screen-by-screen migration strategy:
- Wrap new features in SwiftUI
Views hosted inUIHostingController - Migrate leaf screens first (settings, onboarding, empty states)
- Move your navigation layer to
NavigationStacklast — it's the most coupled part - Share your domain models and ViewModels unchanged between both layers
We've successfully migrated three large UIKit apps to SwiftUI this way, with zero regressions and a 30–40% reduction in view-layer code.
The Verdict
For any new iOS project targeting iOS 16+ in 2025, SwiftUI should be your default. The ecosystem is mature, the tooling is excellent, and Apple's investment signals clearly where the platform is headed. Reserve UIKit for the specific, well-defined cases where its lower-level control is genuinely necessary.
If you're maintaining an existing UIKit app, start a measured migration rather than a rewrite. Your future self will thank you.