Re: [swift-users] Feedback for Dependency Injection Framework?

2016-06-16 Thread Mike Lewis via swift-users
StoryboardSegue, sender: >> AnyObject?) { >> if let custom: CustomViewController = >> segue.destinationViewController.injectable() { >> custom.inject(dependency: dependency) >> } >> } > > > With the extension here: > https://gist.github.com/ian

[swift-users] Feedback for Dependency Injection Framework?

2016-06-14 Thread Mike Lewis via swift-users
Hi, I've recently open sourced a dependency injection framework for Swift called Cleanse. https://github.com/square/cleanse It does a couple things I'd consider novel with the type system to make wiring up functions easy without having to use reflection or other runtime or compile-time hacks (I t