Get Updates By E-mail 

Article Written By:
Johann Dowa

Sourcery – A Swift Code Generation Tool That Saves Time And Adds Metaprogramming Features

  •  
  •  
  •  
  •  
  •  

Sourcery is a code generation tool from Krzysztof Zab?ocki that can dramatically reduce the amount of Swift boilerplate code you need to write, and brings meta-programming to Swift.

As the readme states:

Sourcery is a tool that scans your source code, applies your personal templates and generates Swift code for you, allowing you to use meta-programming techniques to save time and decrease potential mistakes.

– Scans your project code.
– Allows your templates to access information about project types.
– Generates swift code.
– Immediate feedback: Sourcery features built-in daemon support, allowing you to write your templates in real-time side-by-side with generated code.

This shows the Daemon mode of Sourcery in action:

Sourcery

You can find Sourcery on Github here.

A great time-saving open source tool for Swift programmers.


  •  
  •  
  •  
  •  
  •  

Submit A Resource

Have you created a useful tutorial, library or tool for iOS development that you would like to get in front of our 300,000+ monthly page views from iOS developers?

You can submit the url here.

The resources we feel will appeal to our readers the most will be posted on the front page.

Comments