P
P
petrun2021-10-19 12:37:46
iOS
petrun, 2021-10-19 12:37:46

What is the correct way to use swinject + coordinator pattern?

I'm trying to figure out the coordinators.
The pattern itself is clear, but it's not clear how to create it correctly.
In the examples that someone looked at, they don’t bother and create one coordinator inside the other.
Someone is making a factory.
And someone throws the container into the constructor, but then it turns out not DI, but a service locator, which is probably not very correct.
In theory, you can make a factory and throw a container into it, but perhaps this is redundant and does not make much sense.
Or maybe there is a better approach?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question