قالب وردپرس درنا توس
Home / IOS Development / Dependency Injection in large code bases: iOSProgramming

Dependency Injection in large code bases: iOSProgramming



I am a developer on a fairly large app, and in recent years we have used Swinject to handle our need for addiction injection. Over time, this has become unmanageable: as we have architectured the app to be more modular, with protocols that have multiple implementations (which must be registered), it has all become more difficult to work with.

What options have you found work? I have looked at factory classes for each module, but we use object targets in a nice part in Swinject, and I have not found an elegant solution for that yet with factories.

Any ideas / other approaches (using Swinject or otherwise)?


Source link