Powerful dependency injection for Cocoa and CocoaTouch. Lightweight, yet full-featured and super-easy to use.
Typhoon uses the Objective-C runtime to collect metadata and instantiate objects. It powers thousands of Objective-C applications but it is not all that great for modern Swift.
Pilgrim (https://awesomeopensource.com/project/appsquickly/pilgrim) is a pure Swift successor to Typhoon. It is easy to migrate your Typhoon apps to Pilgrim.
Visit the Typhoon website for an introduction. There's also a nice intro over at Big Nerd Ranch, or here's an article, by John Reid. Quite a few books have been written on the topic, though we're not familiar with one that focuses specifically on Objective-C, Swift or Cocoa yet.
Check out the feature list.
let assembly = MyAssembly().activated() let viewController = assembly.recommendationController() as! RecommendationController
Have a Typhoon example app that you'd like to share? Great! Get in touch with us :)
# platform *must* be at least 5.0 platform :ios, '5.0' target :MyAppTarget, :exclusive => true do pod 'Typhoon' end
If you're using Swift, you may wish to install dynamic frameworks, which can be done with the Podfile shown below:
# platform *must* be at least 8.0 platform :ios, '8.0' # flag makes all dependencies build as frameworks use_frameworks! # framework dependencies pod 'Typhoon'
Simply import the Typhoon module in any Swift file that uses the framework:
Alternatively, add the source files to your project's target or set up an Xcode workspace.
NB: All versions of Typhoon work with iOS5 and up (and OSX 10.7 and up), iOS8 is only required if you wish to use dynamic frameworks.
If you can't find what you need in the Quick Start or User Guides above, then Typhoon users and contributors monitor the Typhoon tag on Stack Overflow. Chances are your question can be answered there.
Please raise a GitHub issue.
Great! Here's the contribution guide.
Typhoon is a non-profit, community driven project. We only ask that if you've found it useful to star us on Github or send a tweet mentioning us (@appsquickly). If you've written a Typhoon related blog or tutorial, or published a new Typhoon powered app, we'd certainly be happy to hear about that too.
2012 - 2015 Jasper Blues, Aleksey Garbarev and contributors.