Last active
August 9, 2020 14:59
-
-
Save Bradysm/e212425070369f90eb1d3a866bc60747 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 WithDependencyInjection { | |
var module: Module | |
// inject the dependency through the initializer | |
// to explicitly show the dependency on Module | |
init(module: Module) { | |
self.module = module | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment