send link to app

DI Helper for Swift


Utilities
Free

DI Helper for Swift is one of Xcode Source Editor Extension.

Making a class testable has some tedious steps.

1. defining protocols for the depending classes to separate.
2. implementing test doubles based on the protocols.

This app automates them with Xcode Source Extension.

It has macOS app too.
In the app, you can choose the conversion styles.

Swift and Xcode are trademarks of Apple Inc., registered in the U.S. and other countries.
DI Helper for for Swift is not affiliated with Apple, Inc.

* Usage

1. Open System Preferences -> Extension
2. Put a checkmark next to "DI Helper for Swift"
3. Run (or restart) Xcode
4. Select and highlight a range in your source code
5. Click the Editor -> DI Helper for Swift menu

That performs code generation to your highlighted source code.