Created
August 9, 2020 15:00
-
-
Save Bradysm/884608c253038982931c7c772f406ae1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
struct WithoutDependencyInjection { | |
var module: Module | |
init() { | |
// creating the module ourselves in the init | |
// without stating the dependency on "Module" | |
self.module = Module() | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment