Swinject
https://github.com/Swinject/Swinject
https://www.raywenderlich.com/17-swinject-tutorial-for-ios-getting-started
https://www.raywenderlich.com/17-swinject-tutorial-for-ios-getting-started
의존성 주입이란 외부에서 의존 객체를 생성하여 넘겨주는 것을 의미합니다. 예를들어 A Class가 B Class를 의존할 때 B Object를 A가 직접 생성하지 않고 외부에서 생성하여 넘겨주면 의존성을 주입했다고 합니다.
출처: http://faith-developer.tistory.com/147
Swinject
SwinjectStoryboard
The following blog posts demonstrate step-by-step development of the project.
- Dependency Injection in MVVM Architecture with ReactiveCocoa Part 1: Introduction
- Dependency Injection in MVVM Architecture with ReactiveCocoa Part 2: Project Setup
- Dependency Injection in MVVM Architecture with ReactiveCocoa Part 3: Designing the Model
- Dependency Injection in MVVM Architecture with ReactiveCocoa Part 4: Implementing the View and ViewModel
- Dependency Injection in MVVM Architecture with ReactiveCocoa Part 5: Asynchronous Image Load
"Dependency Injection" is a 25-dollar term for a 5-cent concept. - James Shore
Dependency injection means giving an object its instance variables. Really. That's it. - James Shore
"Dependency Injection" is a 25-dollar term for a 5-cent concept. That's not to say that it's a bad term... and it's a good tool. But the top articles on Google focus on bells and whistles at the expense of the basic concept. I figured I should say something, well, simpler.
Dependency injection means giving an object its instance variables. Really. That's it.
댓글
댓글 쓰기