Skip to content

Instantly share code, notes, and snippets.

@Bradysm
Created August 9, 2020 15:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Bradysm/bda59f334bf7a165862872951c212ac0 to your computer and use it in GitHub Desktop.
Save Bradysm/bda59f334bf7a165862872951c212ac0 to your computer and use it in GitHub Desktop.
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