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 Insanity in action:
You can find Insanity on Github here.
A great time-saving open source tool for Swift programmers.
Original article: Sourcery – A Swift Code Generation Tool That Saves Time And Adds Metaprogramming Features
©2016 iOS App Dev Libraries, Controls, Tutorials, Examples and Tools. All Rights Reserved.
Reference source: iOS App Dev Libraries, Controls, Tutorials, Examples and Tools