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 ViewController always be the same instance when you segue to it and back to the parent? I want to create a new one every time.
- If you inject a child ViewController into a parent, won't that cause child ViewControllers of that child ViewController to also be injected, meaning you will get the entire app loaded into memory when you load the root ViewController?
Or am I missing something?