Tagged with swift
Browse all tagsWhere Errors Belong: Use Case Outputs, Not Error Passed Around
Most apps leak Error across boundaries and downcast in ViewModels. Model failures in the use case output vocabulary instead. Swift and Kotlin.
Dependency Injection in Swift Without the Ceremony
Learn dependency injection in Swift without ceremony using initializers, factories, environment values, and composition roots.
Factories, Builders, and Composition Roots in Swift
Understand factories, builders, and composition roots in Swift, and learn where each construction pattern belongs.
Protocols Are Not Architecture
Learn why Swift protocols are not architecture by themselves, and how to use them as meaningful boundaries.
How to Refactor Toward Better Architecture Without Rewriting the App
Learn how to refactor an iOS feature toward better architecture gradually, without rewriting the whole app.
The Repository Pattern in Swift: Useful Abstraction or Fancy Wrapper?
Learn when the Repository pattern helps Swift apps, when it becomes a wrapper, and how to design useful data boundaries.
Testing Architecture, Not Implementation Details
Learn how to test architecture in Swift by focusing on behavior, boundaries, contracts, and meaningful composition.
Use Cases in iOS Apps: Helpful Boundary or Extra Layer?
Learn when use cases help iOS architecture, when they add noise, and how to keep them focused in Swift apps.