How to Build DI in a Multimodule iOS App Using Needle
summary
Overview of modularization and why dependency injection (DI) matters for multi-module iOS apps, then a focused comparison arguing Needle is the best open-source DI framework. Explains Needle’s architecture and usage nuances, shows how to integrate Needle in a multi-module iOS project and work around issues it creates, and covers how to write tests for code that uses Needle.
AI-written summary · about
chapters (10)
- 0:00Introduction
- 3:38Modularization goals
- 8:13Dependency injection problems
- 9:37DI framework choice
- 13:49What is Needle
- 20:28Components and scopes
- 27:34Needle in multimodule app
- 31:23Testing with Needle
- 32:53Summary and links
- 39:57Q&A
related talks
43mDependency Injection Pattern for iOS App
19mPractical Structure to Configure Dependency Injection in Swift
37mAdvanced multi-platform dependency injection
43mSwiftUI and DI
41mAchieving Loose Coupling with Pure Dependency Injection
39mInject Basics!
31mBuild your own Dependency Injection framework!
40mFundamentals of Dependency Injection
