Dependency Injection Pattern for iOS App
summary
The talk explains using dependency injection (DI) in iOS apps with Swift, focusing on the Swinject framework to define a DI container (Container, Assembly, Assembler) and build a dependency graph for resolved instances. It covers DI concepts tied to the dependency inversion principle, compares iOS architectures (MVC, MVVM, VIPER), presents a minimal architecture to apply DI in production apps, and shows unit testing with test doubles using DI.
AI-written summary · about
chapters (5)
- 0:00Introduction
- 14:14Dependency Injection basics
- 28:05Practical DI in iOS
- 33:18Pitfalls and solutions
- 40:14Q&A
related talks
19mPractical Structure to Configure Dependency Injection in Swift
43mSwiftUI and DI
42mHow to Build DI in a Multimodule iOS App Using Needle
17mAchieving Loose Coupling with Pure Dependency
29mDIY Dependency Injection with Kotlin
15mVaccinate your app with run-time code injection in Swift
24mDependency Injection at Scale
27mDemystifying Dependency Injection Containers
