Practical Sourcery examples

Even though my Sourcery has become the industry standard for anything related to metaprogramming in Swift, many people are still not fully leveraging its power. Many projects use it for primary use-cases like generating Mocks.

Larger projects like Airbnb, The New York Times, or The Browser Company use custom templates to enable workflows and architectures that are impossible to achieve in standard Swift.

I'll cover many more exciting Sourcery use-cases in future articles but let's start by giving you a few examples of what you probably didn't consider using Sourcery.

This post is for paying subscribers only

Sign up now to read this article and get access to all premium posts.
Already have an account? Sign In

You've successfully subscribed to Krzysztof Zabłocki
Great! Next, complete checkout to get full access to all premium content.
Error! Could not sign up. invalid link.
Welcome back! You've successfully signed in.
Error! Could not sign in. Please try again.
Success! Your account is fully activated, you now have access to all content.
Error! Stripe checkout failed.
Success! Your billing info is updated.
Error! Billing info update failed.