Sourcery
A metaprogramming code generator for Swift, built on SwiftSyntax, that removes boilerplate by generating code such as mocks, equality and Codable conformances from templates.
Sourcery is a code generator for Swift, built on Apple's own SwiftSyntax, that extends the language with the ability to generate boilerplate code automatically from a description of the codebase. It is used across tens of thousands of iOS and macOS projects.
Common uses include generating protocol mocks and stubs, equality and hashing implementations, enum case listings and counts, lenses, persistence and advanced Codable conformance, and property-level diffing, letting a developer write an extension such as conforming a protocol to an AutoMockable marker instead of hand-writing repetitive code that stays in sync as the protocol changes.
A paid Sourcery Pro adds a Stencil template editor and live AST templates inside Xcode.