Created
August 9, 2020 15:05
-
-
Save Bradysm/bda59f334bf7a165862872951c212ac0 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