Skip to content

Instantly share code, notes, and snippets.

@Bradysm
Created August 9, 2020 15:00
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/884608c253038982931c7c772f406ae1 to your computer and use it in GitHub Desktop.
Save Bradysm/884608c253038982931c7c772f406ae1 to your computer and use it in GitHub Desktop.
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