Skip to content

Instantly share code, notes, and snippets.

@chelseatroy
Created September 7, 2016 17:15
Show Gist options
  • Save chelseatroy/da68ac8b9d9ca8d9825097289cb91d9e to your computer and use it in GitHub Desktop.
Save chelseatroy/da68ac8b9d9ca8d9825097289cb91d9e to your computer and use it in GitHub Desktop.
View Controller Dependency Injection App Environment
class AppEnviroment: NSObject {
static let sharedEnvironment = AppEnviroment()
let dependableService:DependableService
override init() {
self.dependableService = DependableService()
super.init()
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment