Where Errors Belong: Use Case Outputs, Not Error Passed Around
Published on 03 June 2026Most apps leak Error across boundaries and downcast in ViewModels. Model failures in the use case output vocabulary instead. Swift and Kotlin.
Practical software architecture and design for iOS engineers.
Most apps leak Error across boundaries and downcast in ViewModels. Model failures in the use case output vocabulary instead. Swift and Kotlin.
Learn when use cases help iOS architecture, when they add noise, and how to keep them focused in Swift apps.
Learn how to test architecture in Swift by focusing on behavior, boundaries, contracts, and meaningful composition.
Learn the composition root in pure SwiftUI apps using @main App, factories, observable object ownership, NavigationStack, previews, and environment tradeoffs.
Learn the composition root in UIKit apps using SceneDelegate, factories, flows, dependency wiring, and testable boundaries.
Learn clean MVVM in SwiftUI using use cases, view models, adapters, and composition root wiring.
Learn practical polymorphism in Swift using protocols, decorators, strategies, and composition to keep growing codebases maintainable.