is possible to resolve/ create a new instace of object thats are not registered in Swinject container? In Unity dependency injection for c# (from Microsoft) is it.
I Want to resolve viewModel class, that have dependence for some protocols.
For…
I've tried Swinject(SwinjectStoryboard) and got a problem. Please help me.
extension SwinjectStoryboard {
@objc class func setup() {
defaultContainer.register(SomeClass.self) { _ in
SomeClass()
}
…
I am new to IOC, I am building an Application where we are using IOC containers while discussing we decided an architecture that each module will have two Assemblies one for all module level work which is not exposed outside of that module and one…
In my project I'm using both Swinject and SwinjectAutoregistration pods. Both are usually declared as '2.0.0' versions like so:
pod 'Swinject', '2.0.0'
pod 'SwinjectAutoregistration', '2.0.0'
But in order to build my project in the beta…
I'm using Swinject for DI in my swift project. I think using weak object scope is leading to leaks.
I have this dummy object
protocol DevTestProtocol: class {}
class DevTest: DevTestProtocol {}
which is registered like follows (I'm using an…
I'm starting a new Swift project using Swinject without Storyboards. What's the pattern to inject ViewControllers into other ViewControllers to perform Segues?
If you inject a child ViewController into a parent ViewController, won't the child…
I am using SWInject to maintain dependencies in my app, and the Coordinator pattern to manage logic and dependencies.
Can the SWInject be used in conjunction with a centralized push notification framework with multiple observers in different parts…
It is my first project using Swinject and I want to make sure I use it properly.
Coming from a C++/Objective-C background, I don't have much experience with dependency injection containers.
I follow the MVVM architecture, use SwinjectStoryboard and…
I am looking for a way to test if a service has already been resolved in the .Container scope. My application fires up a few "services" at launch and I wanted to make sure those services have been resolved without triggering them to be resolved.
I'm trying to register CoreDataStack as a single instance on a shared container with object scope .container, but its factory closure called multiple times and when I debug memory graph in Xcode several instances of the object are created even when…