Swinject

https://github.com/Swinject/Swinject
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

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.

Nuts and Bolts of Dependency Injection in Swift

댓글

이 블로그의 인기 게시물

shuffled

지금 이 순간